AS3 - Scope question
Hi guys,
THE SETUP - WHAT WORKS
I have created and randomized an array list, simple enough.
I have created a 'box_mc' which includes 2 frames "Front" and "Back".
The "box_mc" appears on the stage in frame "Front".
When I click on it the "box_mc" goes to frame "Back" AND a text box on frame "Back" appears with the first item in the randomized array.
I NEED HELP ON
When I click "box_mc" again to go back to frame "Front" the frame changes UNLESS I click on the textbox inside of the "box_mc"
I'm using:
e.target.gotoAndPlay("Front"); // selects the 'box_mc' while on frame 'Front'
How can I do something like:
e.target.parent.gotoAndPlay("Front"); // could select 'box_mc' or 'box_mc.myText_txt' on frame 'Back' depending where i click
What can I use?
Thanks for helping,
Sky