problems with determnining when a file has loaded
load movie problem
HI,
Can anyone tell me please, why the below isnt working correctly. WHat should happen is that when the movie clip has loaded, the progress bar i have will go to the frame 'hide_loader' and make the progress bar disapear, but by default when i run the movie, the scene is automatically jumping to that frame without actually showing the progress bar.
loader.autoLoad = true;
loader.contentPath = "ar_ad.swf";
pBar.setStyle("themeColor", "red");
pBar.setStyle("color", "blue");
pBar.label = "%1 out of %2 loaded (%3%%)"
pBar.conversion = 1024;
pBar.source = loader;
if(loader.getBytesLoaded() == loader.getBytesTotal())
{
// movie is loaded
gotoAndPlay("hide_loader");
}
but.. that is not working, and immediatally it is jumping to 'hide_loader'. First before this happens, the movie must be loaded. All that 'hide_loader' does is remove the progress bar from the screen
Anyone help
Steve
|