# Loading random swf file

**URL:** <https://forum.kirupa.com/t/loading-random-swf-file/110130>\
**Category:** Uncategorized\
**Created:** [May 12, 2004, 5:30pm UTC](https://forum.kirupa.com/t/loading-random-swf-file/110130 "2004-05-12T17:30:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![domi](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@domi](https://forum.kirupa.com/u/domi)\
**Post date:** [May 12, 2004, 5:30pm UTC](https://forum.kirupa.com/t/loading-random-swf-file/110130/1 "2004-05-12T17:30:50Z")

</div>

I totally need help here, I think it is a simple scripting problem that I have.

I have my main movie that loads external swf files into it. Everything works fine unitl i have to make it load random swf files.☹

My loading timeline has a transition with it- so as its loading the swf file it just says loading.

on frame 1 of my transition clip I have this:  
\_root.section = “intro.swf”;

in the middle of my transition clip I have this:  
loadMovie(\_root.section, \_root.content);  
stop();

I want it to be able to randomly load “intro0.swf” , “intro1.swf”, “intro2.swf”

I tried to use the script from this tutorial to load my swf file but it doesn’t seem to work for me

Loading a Random Background  
[http://www.kirupa.com/developer/mx/loadingrandombackground.htm](http://www.kirupa.com/developer/mx/loadingrandombackground.htm)

if anyone can help i would greatly appreciate it
