home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Puzzle
/
casual_gameplay_escape.swf
/
scripts
/
DefineSprite_572_sodabutton
/
frame_1
/
DoAction.as
Wrap
Text File
|
2008-09-05
|
966b
|
48 lines
this._alpha = 50;
this.lit = false;
this.onEnterFrame = function()
{
if(this.lit == false && this._alpha > 50)
{
if(this.slow)
{
this._alpha -= 0.5;
}
else
{
this._alpha -= 2;
}
}
else if(this.lit == false)
{
this.slow = false;
}
if(this.lit == true && this._alpha < 100)
{
this.slow = false;
this._alpha += 2;
if(this._alpha > 100)
{
this._alpha = 100;
}
}
};
this.onRelease = function()
{
this.slow = false;
this._parent._parent._parent["w" + this.wvalue].releaseup();
if(this.lit && this._parent.sweeping != true)
{
this.lit = false;
}
else if(this.lit != true && this._parent.sweeping != true)
{
this.lit = true;
}
};
this.onReleaseOutside = this.onRelease;
this.onPress = function()
{
this._parent._parent._parent["w" + this.wvalue].pressdown();
};