Copy link to clipboard
Copied
Iam new to actionscript - how can i load external swf movie to a main timeline, when a movieclip plays the last frame
Copy link to clipboard
Copied
1.Make a keyframe on the first frame of the main timeline of your movie and write:
var loader:Loader = new Loader();
loader.addEventListener(Event.COMPLETE, addThis);
function addThis(e:Event):void{
addChild(e.currentTarget);
}
2.Make a keyframe on the last frame of your MovieClip and write:
//replace external.swf with the actual name of the swf file you want to load
root.loader.load(new URLRequest("external.swf"));
Find more inspiration, events, and resources on the new Adobe Community
Explore Now