I attach a movie with:
exitapp_btn.addEventListener(MouseEvent.MOUSE_DOWN, fexitapp);
function fexitapp(event:MouseEvent) {
var mc:exitapp_mc=new exitapp_mc();
mc.x=320;
mc.y=210;
addChild(mc);
}
I would like the loaded movie to exit and move the parent movie to frame 4 (Is it possible?) . I currently have this:
import flash.system.fscommand;
nope_mc.addEventListener(MouseEvent.CLICK, cancelunloadexitb);
yep_mc.addEventListener(MouseEvent.CLICK, unloadexitb);
function cancelunloadexitb(e:MouseEvent):void {
this.parent.removeChild(this);
}
function unloadexitb(e:MouseEvent):void {
this.parent.removeChild(this);
//I guess the code woul go here
}