home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
eroticos
/
spankthebooty.swf
/
scripts
/
__Packages
/
Preloader.as
< prev
next >
Wrap
Text File
|
2005-10-13
|
687b
|
31 lines
class Preloader extends MovieClip
{
function Preloader()
{
super();
this._parent.stop();
}
function onEnterFrame()
{
var _loc1_ = this;
if(_loc1_.maxWidth == undefined)
{
_loc1_.maxWidth = _loc1_.preloader_mc._width;
}
var _loc3_ = _loc1_._parent.getBytesLoaded();
var _loc2_ = _loc1_._parent.getBytesTotal();
if(_loc2_ < 4)
{
_loc1_.preloader_mc._width = 0;
}
else
{
_loc1_.preloader_mc._width = _loc1_.maxWidth * _loc3_ / _loc2_;
}
if(_loc3_ == _loc2_)
{
_loc1_._parent.gotoAndStop("splash");
}
}
}