I am trying to set a variable on the main timeline via a MC.
On the first frame of the main timeline I have:
Then I have a MC, leafGenerator, and in the first frame I have a stop (then a new frame is chosen randomly). On the second frame I have:Code:stop(); leafName="SILENT RUNNING";
Finally, I have another MC, placard, with a text box inside, idText1. On the MC, I have the code:Code:leafName="AUSSIE PINE";
I can get the text box to display BLUE MAPLE CREEK, and SILENT RUNNING, but I can't get it to say AUSSIE PINE. How can I do this?Code:onClipEvent(load){ this.idText1="BLUE MAPLE CREEK" this.idText1=_root.leafName; }
Any help is much appreciated; thanks in advance.




Reply With Quote