#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2002
    Location
    Seattle, U.S.A.
    Posts
    712
    Rep Power
    13

    accessing variables in different frames


    I have a text box in frame 5 of one of my layers called finished_txt. When I'm in frame 3 I want to set the text of that text box and then move to that frame. I can't figure out how to reference that textbox though. No matter what I try, the textbox is empty when frame 5 loads. Is there a way to do this?

    thanks.
  2. #2
  3. No Profile Picture
    flash junkie
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Location
    CO, USA
    Posts
    172
    Rep Power
    12
    you can't set text values (or variables ) for objects that don't exists yet. Try setting a variable equal to the value of what you want your text box to be, and instead of trying to assign the .text, just put the same variable name in the variable name of the text field. That should work.

    so:

    frame 3:

    textfor5 = "this will show in the text of frame 5";

    frame 5:
    give your text field a variable name of "textfor5"

    see what i mean?

    cheers,

    bret

IMN logo majestic logo threadwatch logo seochat tools logo