View Full Version : AS between frames
trickmastert
09-20-2004, 04:20 PM
this should be easy.
How do i pass Actionscript between frames?
How do i for instance set the .text value for
my_textField on frame B when currently on frame A
madgett
09-20-2004, 04:45 PM
It's all relative, all variables exist on the _root timeline where they were created. Frame 1 of _root is on the same timeline as Frame 2 on _root. You can just reference them. See the attached example.
trickmastert
09-20-2004, 05:08 PM
What i have is several textfields on several different frames.
On frame 1 i load an XML-file and i want something like this to distribute the content of it.
for (i=0; i>5; i++){
_root["my_txt"+i].htmlText = my_xml.firsChild.childNodes[i].firsChild.nodeValue
}
is there a way to achive something similar or do i have to create variables
whith the loop and set the .htmlText property on each individual frame.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.