Easy? Setting main timeline variable from MC
I am trying to set a variable on the main timeline via a MC.
On the first frame of the main timeline I have:
Code:
stop();
leafName="SILENT RUNNING";
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:
leafName="AUSSIE PINE";
Finally, I have another MC, placard, with a text box inside, idText1. On the MC, I have the code:
Code:
onClipEvent(load){
this.idText1="BLUE MAPLE CREEK"
this.idText1=_root.leafName;
}
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?
Any help is much appreciated; thanks in advance.