Jump to content


Level Preloader


  • You cannot reply to this topic
No replies to this topic

#1 AlexRat

    Young Padawan

  • Members
  • Pip
  • 12 posts
  • Location:Ipswich, England

Posted 16 September 2005 - 04:41 AM

I have a loading bar in the movie, main.swf, with the following code:

Frame 1
myvariable=Math.round(Math.random()*10000);
loadMovie("teevo.swf?"+myvariable,_root);
Frame 2
(empty)
Frame 3
loadedBytes = _level1.getBytesLoaded() || 0;
totBytes = _level1.getBytesTotal() || 100;
percent = Math.round(loadedBytes * 100 / totBytes);
if( loadedBytes < totBytes ){
bar._xscale = percent;
gotoAndPlay(2)
}
Frame 4
stop();

The movie, teevo.swf, is then displayed.

Ignoring the fact that I've had cover part of the bar as the movie plays before it's supposed to;

For some reason the pre-loader isn't showing up at all.

Go here to see what I mean, or the page with the flash on is here. (Will load fast on b-band so keep your eyes open for lack of pre-loader bar).

If anyone has any ideas of how to solve this, any assistance would be greatly appreciated.

The files main.fla, main.swf & teevo.swf can be located at www.teevo.co.uk/testing/preloader

Alex





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users