Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CtionScript 3

New Here ,
Jul 22, 2013 Jul 22, 2013

Iam new to actionscript - how can i load external swf movie to a main timeline, when a movieclip plays the last frame

TOPICS
ActionScript
313
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jul 22, 2013 Jul 22, 2013
LATEST

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"));

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines