Copy link to clipboard
Copied
in the scene1 i make movieclip to go to the scene2 .. and its work good :
stop();
Object(this).jj.addEventListener(MouseEvent.CLICK, nono);
function nono (e:MouseEvent):void{
gotoAndStop(1,"s2");
}
--------------------------------------------------------------------------------------------------
but in scene2 i make another movieclip to return to the scene1 .. i write same code but its dose not work why ? and the output become error?! what should i do
stop();
Object(this).gg.addEventListener(MouseEvent.CLICK, toto);
function toto (e:MouseEvent):void{
gotoAndStop(1,"s1");
}
the output massage:
TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_1_fla::MainTimeline/frame2()
at flash.display::MovieClip/gotoAndStop()
at Untitled_1_fla::MainTimeline/nono()
Copy link to clipboard
Copied
disable advanced layers (modify>document>untick 'use advanced layers').
info about advanced layers: https://helpx.adobe.com/animate/using/timeline-layers.html#advanced-layers