home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Puzzle
/
blockix.swf
/
scripts
/
DefineSprite_63_ego
/
frame_1
/
DoAction.as
Wrap
Text File
|
2008-09-26
|
790b
|
34 lines
var mc = 5000;
var xm = random(5) - 3;
var ym = random(5) - 3;
this.onEnterFrame = function()
{
_root.attachMovie("sparcle",5000 + mc,_root.getNextHighestDepth(),{_x:this._x,_y:this._y,mytimer:15,xm:(random(5) - 2) / 4,ym:(random(5) - 2) / 4});
mc = (mc + 1) % 256;
if(!_root.game_running)
{
if(_root.is_pause == false)
{
if(random(10000) == 0)
{
xm = 0;
}
while(xm * ym == 0)
{
xm = random(5) - 3;
ym = random(5) - 3;
}
_X = _X + xm * 3;
_Y = _Y + ym * 3;
if(_X < 5 || _X > 512)
{
xm *= -1;
}
if(_Y < 5 || _Y > 512)
{
ym *= -1;
}
}
}
};