Copy link to clipboard
Copied
good day, how can i pass a value coming from a textbox in scene1 to another textbox which is in scene2?
In scene 1 you could have...
var str:String = t1.text;
and in scene 2 you could have...
t2.text = str;
Copy link to clipboard
Copied
In scene 1 you could have...
var str:String = t1.text;
and in scene 2 you could have...
t2.text = str;
Copy link to clipboard
Copied
Hello Ned. If I am an external actionscript file, will the code still be the same?
Copy link to clipboard
Copied
Most likely. If you have an external Actionscript file then all of the code would be in that same file.
One thing I will suggest if you have never heard it before... don't use scenes. Use one timeline and divide it into sections, or use movieclips in a single frame and control their visibility, or mix the two. Scenes are things of the past that should remain there... they can often be problematic to implenet a design, especially when navigation is involved.
Copy link to clipboard
Copied
It is working now! Thank you very much.
Yes. I realized that too. Whenever I use scenes I am having a hard time calling it with the gotoAndStop and gotoAndPlay function and I ended up repeating my work and using other approach like loading external swfs etc.