Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

Access a parent movie (root) for and attached movie

$
0
0

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

 

}


Viewing all articles
Browse latest Browse all 290743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>