0
CtionScript 3
New Here
,
/t5/animate-discussions/ctionscript-3/td-p/5284944
Jul 22, 2013
Jul 22, 2013
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
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guru
,
LATEST
/t5/animate-discussions/ctionscript-3/m-p/5284945#M137715
Jul 22, 2013
Jul 22, 2013
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"));
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

