rendered paste bodydisplayTime = 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);
};