home *** CD-ROM | disk | FTP | other *** search
- function shake(power, intervalTime, shakeTotal)
- {
- clearInterval(shakeInterval);
- shakeCounter = 0;
- shakeInterval = setInterval(function()
- {
- if(!pause)
- {
- !random(2) ? (_X = x + 1 * power) : (_X = x - 1 * power);
- !random(2) ? (_Y = y + 1 * power) : (_Y = y - 1 * power);
- if(++shakeCounter >= shakeTotal)
- {
- clearInterval(shakeInterval);
- _X = x;
- _Y = y;
- }
- }
- }
- ,intervalTime,this);
- }
- this.onRelease = function()
- {
- getUrl("http://arcadevoid.com/?dual", "_blank");
- };
- this.useHandCursor = true;
- var x = this._x;
- var y = this._y;
-