# loadMovie med delay...?

**URL:** https://forum.kirupa.com/t/loadmovie-med-delay/183176
**Category:** flash
**Created:** [March 24, 2006, 11:54am UTC](https://forum.kirupa.com/t/loadmovie-med-delay/183176 "2006-03-24T11:54:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Master\_thief](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Master\_thief](https://forum.kirupa.com/u/Master_thief)
#### Post date: [March 24, 2006, 11:54am UTC](https://forum.kirupa.com/t/loadmovie-med-delay/183176/1 "2006-03-24T11:54:12Z")

</div>

hey all…

Im making a flash projekt with a “as” folder and a “fla” folder… and in the root the index.fla are placed.

in the “fla” folder all my fla’s are placed. Im going to load them into the scene [FONT=VERDANA][SIZE=2]through the index.as from the “as” folder…[/SIZE][/FONT]

[FONT=VERDANA][SIZE=2] **my index.as** [FONT=VERDANA][SIZE=2]contains:[/SIZE][/FONT][/SIZE][/FONT]

[FONT=VERDANA][SIZE=2]_//loading swfer_  
_\_root.createEmptyMovieClip(“bg”,1);_  
_\_root.bg.\_x=0;_  
_\_root.bg.\_y=0;_  
_\_root.bg.loadMovie(“fla/bg.swf”);_  
[/SIZE][/FONT]

[FONT=VERDANA][SIZE=2]and that works… 😃 [/SIZE][/FONT]

[FONT=VERDANA][SIZE=2]but if a willl load my (“fla/logo.swf”) which the same code (and change the level) the logo are loding first, because its teen times smaller than the (“fla/bg.swf”)…:look: … by the way I have preloader in all the swf’s[/SIZE][/FONT]

[FONT=VERDANA][SIZE=2]In the (“fla/bg.swf”) there is a animation from frame 1 to 10… and I will load the (“fla/logo.swf”) when the (“fla/bg.swf”) hit frame 10…[/SIZE][/FONT]

instead of placing the code (createEmptyMovieClip…) in frame 10 of the (“fla/bg.swf”), I will place it in the index.as file… but HOW…:q:

I [FONT=VERDANA][SIZE=2]guess the it will look like:  
[/SIZE][/FONT]  
[FONT=VERDANA][SIZE=2]_//loading swfer_  
_\_root.createEmptyMovieClip(“bg”,1);_  
_\_root.bg.\_x=0;_  
_\_root.bg.\_y=0;_  
_\_root.bg.loadMovie(“fla/bg.swf”);_  
[/SIZE][/FONT]

loaded = function (){  
if (“fla/bg.swf” loaded){  
\__root.createEmptyMovieClip(“logo”,2);_  
_\_root.logo.\_x=0;_  
_\_root.logo.\_y=0;_  
_\_root.logo.loadMovie(“fla/bg.swf”);_  
_}_  
_}_

[FONT=VERDANA][SIZE=2]:huh: ??? [/SIZE][/FONT]  
or how do I make a delay of loading the swf’s…?  
[FONT=VERDANA][SIZE=2]  
[/SIZE][/FONT]
