User Tag List

Results 1 to 5 of 5

Thread: Parsing

  1. #1
    Clicker Fusion 2.5
    ayejes's Avatar
    Join Date
    Feb 2008
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Parsing

    What I need to do is to be able to parse a sentence(using the spaces for the delimiter) from a text file. I need to be able to count each word and save that result for creating a specific number of objects. I also want to be able blit a specific word from the sentence to the center of one of the objects.

    I have been looking at the tokens object example but it just seems to be not fully clicking in my mind.

    I also would like to be able to have multiple sentences in one text file and be able to pick which sentence to have parsed. This would be better I think than having multiple text files for just one sentence.

    If someone could submit an explanation or upload a little example I would much appreciate it.


    Thanks

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Parsing


  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Parsing

    You could also try my String Tokenizer object. It allows for 2D tokenization, so you could set one delimiter to " " and the other to a newline.

  4. #4
    Clicker Fusion 2.5
    ayejes's Avatar
    Join Date
    Feb 2008
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Parsing

    How do I load the text file? In the color list object, there is a load list file, but I am just not seeing how to load a text file for the tokens object example. So anyone who could just show me the click code to load a text file I would much appreciate it. Also once loaded how do I access the file for parsing. In the tokens object the source file is in a strings object. So how would I input the text file into a click code to be viewed and parsed.

    I apologize if this seems like a real newbie question. I really do like mmf over trying to code everything in c, but as it was there was some things in c that was ruff for me and every now and then my mind gets stuck in an endless loop of trying to see how to write code in c rather than mmf.

    Thanks for the help

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Parsing

    How do I load the text file? In the color list object, there is a load list file, but I am just not seeing how to load a text file for the tokens object example.
    You don't load a text file into the Tokens Object. You tell the Tokens Object in the expression which text to parse. The text can be in a string, an RTF Object, or any other text related object.

    Normally when you have a large text loaded to an let's say RTF Object, you will isolate parts of it into a string. And then go on with the content of this string.That's why i have the string in my example.

    Do a test, modify the string in my example. The result will change by this.

Similar Threads

  1. Help with parsing a file
    By macca02 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th October 2013, 09:52 AM
  2. problems parsing beta26
    By ineke in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 22nd April 2012, 02:16 PM
  3. File Parsing
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 20th September 2008, 02:42 AM
  4. Parsing question...
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th September 2008, 04:05 PM
  5. String parsing
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd April 2007, 04:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •