home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
eroticos
/
spankthebooty.swf
/
scripts
/
__Packages
/
Console.as
< prev
next >
Wrap
Text File
|
2005-10-13
|
1KB
|
51 lines
class Console extends MovieClip
{
var fastestScore = 0;
var latestScore = 0;
var maxSpeed = 500;
function Console()
{
super();
}
function reset()
{
var _loc1_ = this;
_loc1_.fastestScore = 0;
_loc1_.latestScore = 0;
_loc1_.displayScores();
_loc1_.setSpeed(0);
}
function displayScores()
{
var _loc1_ = this;
_loc1_.fastest_txt.text = _loc1_.fastestScore;
_loc1_.latest_txt.text = _loc1_.latestScore;
}
function setSpeed(speed)
{
var _loc1_ = this;
var _loc2_ = speed;
if(_loc2_ > _loc1_.maxSpeed)
{
_loc2_ = _loc1_.maxSpeed;
}
_loc1_.pointer_mc._rotation = _loc2_ * 250 / _loc1_.maxSpeed;
}
function setWakSpeed(speed)
{
var _loc1_ = this;
var _loc2_ = speed;
_loc1_.latestScore = Math.round(_loc2_);
if(_loc1_.fastestScore < _loc2_)
{
_loc1_.fastestScore = Math.round(_loc2_);
}
_loc1_.displayScores();
_loc1_.setSpeed(_loc2_);
}
function getMaxSpeed()
{
return this.maxSpeed;
}
}