# Loading multiple swf into fla

**URL:** <https://forum.kirupa.com/t/loading-multiple-swf-into-fla/310498>\
**Category:** Uncategorized\
**Created:** [June 11, 2010, 1:02pm UTC](https://forum.kirupa.com/t/loading-multiple-swf-into-fla/310498 "2010-06-11T13:02:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webguync](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/webguync/32/2434_2.png) [@webguync](https://forum.kirupa.com/u/webguync)\
**Post date:** [June 11, 2010, 1:02pm UTC](https://forum.kirupa.com/t/loading-multiple-swf-into-fla/310498/1 "2010-06-11T13:02:00Z")

</div>

I want to load multiple swf/s into an fla file using AS3 and then publish that file to .exeand have the swf’s play in succession. I am using the following code to load one swf, but wasn’t sure how to load multiples where they play one after another. Here is what I have so far.

```auto

import flash.net.URLRequest;
 import flash.display.Loader;
 import flash.events.Event;
 import flash.events.ProgressEvent;
 function startLoad() 
{ var mLoader:Loader = new Loader(); 
var mRequest:URLRequest = new URLRequest("SlideShow_P1.swf"); 
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
 mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
 mLoader.load(mRequest);
 } 
function onCompleteHandler(loadEvent:Event)
 {        
 addChild(loadEvent.currentTarget.content); 
} 
function onProgressHandler(mProgress:ProgressEvent)
 {
 var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal; trace(percent);
 } 
startLoad();

```
