# Loading Random External Flash Files

**URL:** https://forum.kirupa.com/t/loading-random-external-flash-files/296628
**Category:** flash
**Created:** [September 17, 2009, 1:39pm UTC](https://forum.kirupa.com/t/loading-random-external-flash-files/296628 "2009-09-17T13:39:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![41dreams](https://avatars.discourse-cdn.com/v4/letter/4/df788c/32.png) [@41dreams](https://forum.kirupa.com/u/41dreams)
#### Post date: [September 17, 2009, 1:39pm UTC](https://forum.kirupa.com/t/loading-random-external-flash-files/296628/1 "2009-09-17T13:39:40Z")

</div>

Hello Everyone, this is my first post i am wonder if someone could help me.

I have 5 external flash files that i am trying to load randomly in from a seperate flash files  
(main.swf is trying to randomly load: Flash1.swf, flash2.swf, flash3.swf, flash4.swf, flash 5.swf)

this is what i have so far:

var myLoader:Loader = new Loader();  
addChild(myLoader);  
var url:URLRequest = new URLRequest(“flash1.swf”);  
myLoader.load(url);  
it works in loading just one flash movie but im looking to have to randomly load from the five .swf’s

thanks!
