home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
CCornerKicker.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
2KB
|
61 lines
class CCornerKicker
{
var def_bx = 54.5;
var def_by = 0;
var def_bz = -37.5;
function CCornerKicker(bg, _mcParent)
{
this.mybg = bg;
this.mcParent = _mcParent;
this.createAnim();
}
function createAnim()
{
this.bx = this.def_bx;
this.by = this.def_by;
this.bz = this.def_bz;
var _loc3_ = new sandy.core.Sprite2D(0.1);
this.mcKicker = this.mcParent.attachMovie("cornerkicker","cornerkicker",this.mcParent.getNextHighestDepth());
this.mcKicker._visible = false;
var _loc4_ = new sandy.skin.MovieSkin(this.mcKicker);
_loc3_.setSkin(_loc4_);
this.mcKicker.gotoAndStop(1);
var _loc6_ = new sandy.core.group.TransformGroup();
var _loc5_ = new sandy.core.group.TransformGroup();
var _loc2_ = new sandy.core.group.TransformGroup();
_loc2_ = new sandy.core.group.TransformGroup();
this.bTrans = new sandy.core.transform.Transform3D();
this.bTrans.translate(this.bx,this.by,this.bz);
_loc2_.setTransform(this.bTrans);
_loc2_.addChild(_loc3_);
this.mybg.addChild(_loc2_);
}
function hide()
{
this.mcKicker.gotoAndStop(1);
}
function show()
{
this.mcKicker.gotoAndStop(2);
}
function restart()
{
this.mcKicker.gotoAndStop(1);
}
function kick()
{
this.mcKicker.gotoAndPlay(2);
}
function setHuman(human)
{
if(human == true)
{
this.mcKicker.indicator._visible = true;
}
else
{
this.mcKicker.indicator._visible = false;
}
}
}