Hey Guys,
Its day 3 of learning AS3 for me. And I’ve run onto a small problem that seems pretty simple but I haven’t been able to figure out the answer to. I cant seem to target a movieclip within a movieclip. I code with all my actions on the first frame of the root timeline and would like to continue this practice. But when I target the clip from the root my function wont run.
Here is my example:
wheel_mc.spinBackward_mc.buttonMode = true;
wheel_mc.spinForward_mc.addEventListener(MouseEvent.CLICK, spinForward);
function spinForward(event:MouseEvent):void {
wheel_mc.outterRing_mc.play();
wheel_mc.outterRing_mc.title_mc.gotoAndPlay("fadeIn");
trace ("clicked button");
}
Basically it wont gotoAndPlay(“fadeIn”) and I’m not sure why. So my question so I can move on in my AS3 learning is how to I target a movieclip with another movieclip, or is there another more proper way to do what I’m trying to achieve.