home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Acao
/
SWING-CAT.swf
/
scripts
/
DefineSprite_401
/
frame_1
/
DoAction.as
Wrap
Text File
|
2008-09-25
|
6KB
|
240 lines
function §\x01\x02§()
{
return 2671 % 511 * 5;
}
var §\x01§ = 401 + "\x01\x02"();
while(true)
{
if(eval("\x01") == 981)
{
set("\x01",eval("\x01") - 909);
§§push(true);
}
else if(eval("\x01") == 983)
{
set("\x01",eval("\x01") - 639);
var §§pop() = function §\x01\x02§()
{
return 2671 % 511 * 5;
};
}
else if(eval("\x01") == 344)
{
set("\x01",eval("\x01") - 29);
§§push("\x0f");
}
else if(eval("\x01") == 315)
{
set("\x01",eval("\x01") + 121);
§§push(eval(function §\x01\x02§()
{
return 2671 % 511 * 5;
}));
}
else if(eval("\x01") == 436)
{
set("\x01",eval("\x01") + 368);
§§push(!function §\x01\x02§()
{
return 2671 % 511 * 5;
});
}
else if(eval("\x01") == 19)
{
set("\x01",eval("\x01") + 964);
§§push("\x0f");
§§push(1);
}
else if(eval("\x01") == 399)
{
set("\x01",eval("\x01") - 380);
}
else if(eval("\x01") == 502)
{
set("\x01",eval("\x01") - 483);
}
else if(eval("\x01") == 72)
{
set("\x01",eval("\x01") + 536);
if(function §\x01\x02§()
{
return 2671 % 511 * 5;
})
{
set("\x01",eval("\x01") - 106);
}
}
else if(eval("\x01") == 804)
{
set("\x01",eval("\x01") + 125);
if(function §\x01\x02§()
{
return 2671 % 511 * 5;
})
{
set("\x01",eval("\x01") - 351);
}
}
else
{
if(eval("\x01") != 929)
{
break;
}
set("\x01",eval("\x01") - 351);
}
}
if(eval("\x01") == 608)
{
set("\x01",eval("\x01") - 106);
}
else if(eval("\x01") == 578)
{
set("\x01",eval("\x01") - 427);
stop();
this.onEnterFrame = function()
{
if(_global.game_state)
{
if(_parent.stick1_mc.stick_mc.a1_mc.hitTest(this))
{
side_hitTest(_parent.stick1_mc.stick_mc.a1_mc,"a1");
if(stick1_flag)
{
stick1_flag = false;
if(my_states != states[states.length - 1])
{
_parent.stick1_mc.stick_mc.gotoAndPlay("back");
_parent.oncetouch1_mc.gotoAndPlay(2);
i++;
my_states = states[i];
if(remove == 0)
{
remove = space;
remove = space + (space - Math.abs(remove));
}
else
{
remove = space - Math.abs(remove);
}
}
}
}
else
{
stick1_flag = true;
}
if(_parent.stick2_mc.stick_mc.a2_mc.hitTest(this))
{
side_hitTest(_parent.stick2_mc.stick_mc.a2_mc,"a2");
if(stick2_flag)
{
stick2_flag = false;
if(my_states != states[0])
{
_parent.stick2_mc.stick_mc.gotoAndPlay("back");
_parent.oncetouch2_mc.gotoAndPlay(2);
i--;
my_states = states[i];
if(remove == 0)
{
remove = space;
remove = - (space + (space - Math.abs(remove)));
}
else
{
remove = - (space - Math.abs(remove));
}
}
}
}
else
{
stick2_flag = true;
}
if(remove > 0)
{
if(_global.only_win < 1)
{
this._x += speed;
remove -= speed;
}
}
else if(remove < 0)
{
if(_global.only_win < 1)
{
this._x -= speed;
remove += speed;
}
}
else
{
if(my_states == states[states.length - 1])
{
_global.a1 = 1;
_global.a2 = 0;
my_states = 0;
_parent.game_win();
this._x += 20;
store_move = true;
}
if(my_states == states[0])
{
_global.a1 = 0;
_global.a2 = 1;
my_states = 0;
_parent.game_win();
this._x -= 20;
store_move = true;
}
}
if(store_move)
{
if(this._y < 250)
{
j = 0;
while(j < _global.stones.length)
{
if(this.hitTest(_global.stones[j]))
{
_global.stones[j].gotoAndPlay(2);
}
j++;
}
this._y += 15;
}
else
{
this._visible = false;
store_move = false;
_global.game_state = false;
if(_global.a1 > _global.a2)
{
_parent.cat2.gotoAndStop(2);
if(_global.win == "")
{
_root.a1_mc.gotoAndStop("win");
_root.a2_mc.gotoAndStop("lost");
}
}
else if(_global.a1 < _global.a2)
{
_parent.cat1.gotoAndStop(2);
if(_global.win == "")
{
_root.a1_mc.gotoAndStop("lost");
_root.a2_mc.gotoAndStop("win");
}
}
}
}
}
};
store_initialization();
}
else if(eval("\x01") == 151)
{
set("\x01",eval("\x01") - 151);
}