# \[flashmx\] help with loading movie to play during preloader

**URL:** <https://forum.kirupa.com/t/flashmx-help-with-loading-movie-to-play-during-preloader/221778>\
**Category:** flash\
**Created:** [April 7, 2007, 4:32pm UTC](https://forum.kirupa.com/t/flashmx-help-with-loading-movie-to-play-during-preloader/221778 "2007-04-07T16:32:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawatkin](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@dawatkin](https://forum.kirupa.com/u/dawatkin)\
**Post date:** [April 7, 2007, 4:32pm UTC](https://forum.kirupa.com/t/flashmx-help-with-loading-movie-to-play-during-preloader/221778/1 "2007-04-07T16:32:27Z")

</div>

I have a movieclip playing during the preloader. The problem is that the movieclip doesn’t immediately start playing when a person goes to the site- there is a blank screen and then it starts playing the movieclip 20 frames after the beginning (especially on a slower connection).

Is there a way to load/start playing the movieclip before the bulk of the site starts downloading? (The movieclip is internal in the 1st frame).

the code for the preloader looks like this:

onClipEvent (enterFrame) {  
loading = \_parent.getBytesLoaded();  
total = \_parent.getBytesTotal();  
percent -= (percent-((loading/total)_100))_.25;  
per = int(percent);  
percentage = per+"%";  
loadBar.\_width = per\*6.5;  
//loading is the movieclip that plays- currentframe is so it will finish the clip  
if (percent\>99,\_root.loading.\_currentframe==169) {

```
    _parent.gotoAndPlay(3);
}

```

}

Thanks for the help.
