A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: parsing a variable

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Location
    York, Pennsylvania
    Posts
    380
    Please look at

    http://www.reedassociates.com/kmstuff/parsing.html


    http://www.reedassociates.com/kmstuff/parsing.fun

    I am doing an AS tutorial, but it is heavily geared with step by steps for Flash 5... I am confused as to how I woudl get the three parsed variables to update once the full variable (whole name) is changed.

    Can this be done automatically as soon as the full variable is changed, or does it require a refresh action button?

    Can someone provide examples based on my fun file?

    Thank you very much!

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    I'm thinking something like this could be achieved with a method not yet implemented called updateafterevent http://www.macromedia.com/support/fl...fterevent.html

    Perhaps if you refrence the Flash 5 tut??


  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Thanks to Hilary's prodding, this method is in place as of several versions ago.

  4. #4
    Senior Member
    Join Date
    Oct 2000
    Location
    York, Pennsylvania
    Posts
    380
    how would the updateafterevent be used in this case? It looks as if it looks for a movie clip, which I am not using.


  5. #5
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    you would place your form in the MC and then check for a key press, such as the tab key press.

    Alternativly you could acomplish this by making 2 copies of your frame and then moving Your AS to Frame 2. On The third Frame you would Add a Goto Frame and Play Action.

    This is actually kind of freaky...


    See this example...

    1. Create 2 Text Boxes. Make sure they are named txt1 and txt2.

    2. Make to copies of the frame by pushing the append to end button.

    3. Add This Action Script to Key Frame 2:

    _root.txt2=_root.txt1

    4. Now add a Goto Frame and Play Key Frame 2 action to Frame 3.

    5. Preview in a browser or standalone... when you enter something into Text Box 1 it apears in Text Box 2 and auto updates itself- Viola... Auto Update without using a MC.

    You can follow this process for your file.




Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center