All pastes #421248 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-02 18:51 UTC
rendered paste body
displayTime = 0;
timerCount = function () {
     displayTime++;
     if (displayTime == 10) {
          clearInterval(timer);
		  displayTime = 0;
		  laserGun.gotoAndStop (1);
     }
};
var timer:Number = setInterval(timerCount, 100);
laserGun.onEnterFrame = function() {
	myRadians = Math.atan2(_root._ymouse-this._y, _root._xmouse-this._x);
	myDegrees = Math.round((myRadians*180/Math.PI));
	this._rotation = myDegrees+90;
};
onMouseDown = function () {
	timer++;
	setInterval(timerCount, 10);
	laserGun.gotoAndStop(2);
};