Escolar Documentos
Profissional Documentos
Cultura Documentos
onRelease = function()
this._visible = false;
startgame();
startgame = function()
var nm = "m" + i;
_root[nm].onPress = function()
if (this._currentframe == 10)
this.play();
whacks++;
scoreDisplay.whack_txt.text = whacks;
doWhackAt(_xmouse, _ymouse);
_root[nm].onEnterFrame = function()
if (this._currentframe == 1)
{
if ((Math.random() * 100) < 1)
this.play();
this.play();
whacks = 0;
scoreDisplay.whack_txt.text = whacks;
_root.onEnterFrame = function()
if (etime <= 0)
var nm = "m" + i;
delete _root[nm].onPress;
delete _root[nm].onEnterFrame;
_root[nm].stop();
delete _root.onEnterFrame;
else
wcnt = 0;
doWhackAt = function(x, y)
_root[nm]._x = x;
_root[nm]._y = y;
_root[nm].onEnterFrame = function()
{
this._alpha -= 10;
delete this.onEnterFrame;
this.removeMovieClip();
wcnt++;
wcnt %= 5;