i have main fla its name “sections.swf”
it loads sub swf files “sec1.swf” that has animation that open window movie clip with instance name “cont” and a close btn inside “cont” with instance name “close”
i want to play a specific frame on “mainSection.swf” when i click the “close” button
my code:
close_btn.addEventListener(MouseEvent.CLICK, closeBox, false, 0, true);
function closeBox(evt:MouseEvent):void {
// This tell the window to play its timeline
cont.play();
// This tell the "mainSection.swf" play its timeline, lets say label "sec1"
MovieClip(parent).play("sec1");
}
Thanks