# Flash movie pre-loader not working? Help please!

**URL:** <https://forum.kirupa.com/t/flash-movie-pre-loader-not-working-help-please/305109>\
**Category:** flash\
**Created:** [February 19, 2010, 9:13am UTC](https://forum.kirupa.com/t/flash-movie-pre-loader-not-working-help-please/305109 "2010-02-19T09:13:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmemarian](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@dmemarian](https://forum.kirupa.com/u/dmemarian)\
**Post date:** [February 19, 2010, 9:13am UTC](https://forum.kirupa.com/t/flash-movie-pre-loader-not-working-help-please/305109/1 "2010-02-19T09:13:48Z")

</div>

Hi All,

I’ve followed a flash preloader tutorial word by word online for AS2.

The main bulk of the AS code is:

stop();  
loaderInt = setInterval (Lbar, 10);  
function Lbar () {  
if (getBytesLoaded () \>= getBytesTotal ()) {  
play();  
clearInterval (loaderInt);  
}  
fill\_MC.\_xscale = (getBytesLoaded()/getBytesTotal ()\*100);  
}

With fill\_MC being my pre-loader bar. I’ve checked the instance name a hundred times but to no avail, it just wont register the loading. You can see for yourself if you kindly navigate to [http://www.dariomemarian.com/sitedevelopment.html](http://www.dariomemarian.com/sitedevelopment.html) and then click on magazine. Either the movie won’t play at all or you get a flash of the preloader and then the supposed pre-loaded jittery movie plays. The movie clip it self is a image sequence of jpegs.
