# loadMovie()

**URL:** <https://forum.kirupa.com/t/loadmovie/38324>\
**Category:** flash\
**Created:** [December 21, 2003, 7:42am UTC](https://forum.kirupa.com/t/loadmovie/38324 "2003-12-21T07:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://forum.kirupa.com/u/sebastien)\
**Post date:** [December 21, 2003, 7:42am UTC](https://forum.kirupa.com/t/loadmovie/38324/1 "2003-12-21T07:42:33Z")

</div>

hey guys, this is what im trying to do

in the same directory on my FTP, there is a .swf animation.

now, i want to load that swf animation inside a flash movie called "mainFlashMovie :).

my question is, how would i build a preloader for the animation only, not the whole “mainFlashMovie” file.

this is what i got thus far.

i have a movie clip name CMovie instance “CMovie”  
And in a frame i have:

loadMovie(“ae.swf”,\_root.Cmovie);

this will load my animation in the movie clip CMovie, but thing is i’ve looked at the preloader tutorials on here, but i cant understand how to make one just for that animation instead of the whole thing

thx  
-sebastien

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 2:19pm UTC](https://forum.kirupa.com/t/loadmovie/38324/2 "2003-12-21T14:19:55Z")

</div>

If you put a preloader in front of “ae.fla”, the “ae.swf” will be preloaded into your main movie.

\*and do c\_Movie instead of CMovie, is more standard.

```auto
loadMovie("ae.swf",c_Movie);

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 3:35pm UTC](https://forum.kirupa.com/t/loadmovie/38324/3 "2003-12-21T15:35:56Z")

</div>

what you would do (without editing ae.fla) is use getBytesLoaded and getBytesTotal on your \_root.Cmovie instead of \_root (which I assume the tutorial has). Also, this preloader should exist as a simple movieclip which can exist on the screen at the same time as that movie … not in a first scene which the tutorial again may or may not do.

If you still have problems, google flash preloader. preloader questions are asked and answered everyday.
