|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > accessing variables in different frames |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|