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
Level Preloader
Started by AlexRat, Sep 16 2005 04:41 AM
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
