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) 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)
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:
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) 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