fusionspill
October 8th, 2008, 12:11 PM
im new to AS3 and I understand some of AS2
I found this post that helped me figure out how to remove child swf
http://www.actionscript.org/forums/showthread.php3?t=182597&highlight=external
what im trying to figure out how is as soon as I click to remove child I want the main movie timeline to gotoAndPlay a frame and stop
this is what my files look like right now
abc.fla
stop();
abcbtn.addEventListener(MouseEvent.CLICK, loadMC2)
function loadMC2 (ev:MouseEvent):void
{
var urlRequest:URLRequest = new URLRequest("123.swf");
var loader:Loader = new Loader();
loader.load(urlRequest);
addChild(loader)
}
sub page
123.fla
stop();
cbabtn.addEventListener(MouseEvent.MOUSE_DOWN, loadMC2)
function loadMC2(ev:MouseEvent){
MovieClip(parent.parent).removeChild(this.parent);
}
I thought adding
MovieClip(parent.parent).gotoAndPlay("move"); to 123.fla it would play the frame on the main swf but nothing is happening. what do I use to call a frame from a external swf and play on the main swf when I close the child?
i hope im being clear enough.
I found this post that helped me figure out how to remove child swf
http://www.actionscript.org/forums/showthread.php3?t=182597&highlight=external
what im trying to figure out how is as soon as I click to remove child I want the main movie timeline to gotoAndPlay a frame and stop
this is what my files look like right now
abc.fla
stop();
abcbtn.addEventListener(MouseEvent.CLICK, loadMC2)
function loadMC2 (ev:MouseEvent):void
{
var urlRequest:URLRequest = new URLRequest("123.swf");
var loader:Loader = new Loader();
loader.load(urlRequest);
addChild(loader)
}
sub page
123.fla
stop();
cbabtn.addEventListener(MouseEvent.MOUSE_DOWN, loadMC2)
function loadMC2(ev:MouseEvent){
MovieClip(parent.parent).removeChild(this.parent);
}
I thought adding
MovieClip(parent.parent).gotoAndPlay("move"); to 123.fla it would play the frame on the main swf but nothing is happening. what do I use to call a frame from a external swf and play on the main swf when I close the child?
i hope im being clear enough.