I have a button component “runCalc_button” labeled “Caclulate” within a movie Clip “inputScreen_mc”.
I’m trying to access the button’s properties from the Root, but I’m getting back “undefined.”
Here’s my code:
_root.attachMovie("inputScreen_mc", "inputScreen_mc", 200);
trace(_root.inputScreen_mc.runCalc_button);
trace(_root.inputScreen_mc.runCalc_button.label);
the first “trace” returns “_level0.inputScreen_mc.runCalc_button” as it should.
the second returns “undefined.”
Anyone know why? Shouldn’t it return “Calculate.”