home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
E3 2003 Press Pack
/
Image.iso
/
n-gage.swf
/
scripts
/
frame_6
/
DoAction.as
Wrap
Text File
|
2003-05-08
|
558b
|
26 lines
var framestoload = _totalframes;
bytesloaded = getbytesloaded();
bytestotal = getbytestotal();
if(_framesloaded == framestoload)
{
preloadBar._visible = false;
boundingBox._visible = false;
gotoAndPlay(9);
}
else
{
percent = bytesloaded / bytestotal;
preloadBar._xscale = math.round(percent * 100);
percentOutput = math.round(percent * 100) + "%";
if(0.99 < percent)
{
preloadBar._visible = false;
boundingBox._visible = false;
gotoAndPlay(9);
}
else
{
gotoAndPlay(5);
}
}