I have a movieclip called PointerMC. Inside PointerMC is a tween which has actionscript. PointerMC starts off as
pointerMC.visible=false;
. I have a MovieClip called playMC as well on the stage. Here is the AS:
playMC.addEventListener(MouseEvent.CLICK, playClick);
function playClick(evt:Event):void {
pointerMC.gotoAndPlay(1);
}
and here is the AS inside pointerMC:
stop();
MovieClip(root).pointerMC.visible=true;
Now, when I click playMC, I want to make pointerMC visible and then play the tween inside PointerMC, I know I can do
function playClick(evt:Event):void {
pointerMC.visible=true;
pointerMC.gotoAndPlay(1);
}
but how do I make pointerMC visible while I am inside the MovieClip? How come
MovieClip(root).pointerMC.visible=true;
is not making PointerMC visible?