# Preloader stops the scroller from working!

**URL:** <https://forum.kirupa.com/t/preloader-stops-the-scroller-from-working/217794>\
**Category:** flash\
**Created:** [March 1, 2007, 10:46pm UTC](https://forum.kirupa.com/t/preloader-stops-the-scroller-from-working/217794 "2007-03-01T22:46:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoogWeed](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@BoogWeed](https://forum.kirupa.com/u/BoogWeed)\
**Post date:** [March 1, 2007, 10:46pm UTC](https://forum.kirupa.com/t/preloader-stops-the-scroller-from-working/217794/1 "2007-03-01T22:46:20Z")

</div>

Hi all,

I’m having a strange problem withFflash8.

I have followed the Simple Custom Scroll Bar ([http://www.kirupa.com/developer/flash8/scrollbar.htm](http://www.kirupa.com/developer/flash8/scrollbar.htm)) tutorial and got it working exactly how I want.

I have also followed “Ultimate Preloader” tutorial ([http://www.lukamaras.com/tutorials/preloaders/complete-flash-8-visual-numerical-preloader.html](http://www.lukamaras.com/tutorials/preloaders/complete-flash-8-visual-numerical-preloader.html))  
and got that working perfectly too.

My webpage loads external SWFs when you click the navigation. On the page where I have the preloader, the preloader works fine. On the pages where I have the scroller, the scroller works fine.

But when I have one page with the preloader AND the scroller on page nothing works. I just get a black page as if the external swf is not even loading, but I know it IS loading as i see the preloader flash for a split second before the screen stays black.

If I remove the preloader, then export and upload the movie, the scroller works perfectly.

This is my code for the preloader:

```auto

stop();
pl_mask._yscale = 1;
var loadingCall:Number = setInterval(preloadSite, 50);
function preloadSite():Void
{
    var siteLoaded:Number = _root.getBytesLoaded();
    var siteTotal:Number = _root.getBytesTotal();
    var percentage:Number = Math.round(siteLoaded/siteTotal*100);
    pl_mask._yscale = percentage;
    pl_percentageClip.pl_Percentage.text = percentage+"%";
    if (siteLoaded>=siteTotal) {
        clearInterval(loadingCall);
        gotoAndPlay(10);
    }
}

```

The script for the scroller is exactly the same as the tutorial ([http://www.kirupa.com/developer/flash8/scrollbar.htm](http://www.kirupa.com/developer/flash8/scrollbar.htm)) and it is on frame 10 as are the graphics etc for the scroller.

When I preview (ctrl + enter) it works perfectly with the preloader AND scroller, but when I upload it to my server, it doesn’t work. ☹

Can anyone help me out on this?

Many thanks 🙂
