Ребят возник вопрос. Как добавить скорострельнось в данный код, с возможностью редактировать за счет переменной. Зарание спасибо.

Код AS1/AS2:
var s =200;
if(Key.isDown(1))
{
var zeroPoint2: Object = {x:0, y:0};
var zeroPoint1: Object = {x:0, y:0};
qqq.www1.localToGlobal(zeroPoint2);
qqq.www2.localToGlobal(zeroPoint1);
AnglaShot2 = + qqq._rotation + qqq.www1._rotation;
AnglaShot1 = + qqq._rotation + qqq.www2._rotation;
start_ball2_x = zeroPoint2.x + 25 * Math.cos(AnglaShot2 * Math.PI / 180);
start_ball2_y = zeroPoint2.y + 25 * Math.sin(AnglaShot2 * Math.PI / 180);
start_ball1_x =zeroPoint1.x + 25 * Math.cos(AnglaShot1 * Math.PI / 180);
start_ball1_y =zeroPoint1.y + 25 * Math.sin(AnglaShot1 * Math.PI / 180);
pul1_fired = attachMovie("pul1", "pul1_" + _root.getNextHighestDepth(),_root.getNextHighestDepth(), {_x:start_ball1_x, _y:start_ball1_y});
pul2_fired = attachMovie("pul1", "pul1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:start_ball2_x, _y:start_ball2_y});
pul1_fired._rotation = qqq.www2._rotation + qqq._rotation;
pul2_fired._rotation = qqq.www1._rotation + qqq._rotation;
pul1_fired.dirx = s * Math.cos(AnglaShot1 * Math.PI / 180);
pul1_fired.diry = s * Math.sin(AnglaShot1 * Math.PI / 180);
pul2_fired.dirx = s * Math.cos(AnglaShot2 * Math.PI / 180);
pul2_fired.diry = s * Math.sin(AnglaShot2 * Math.PI / 180);
pul1_fired.onEnterFrame = function();
{
this._x += this.dirx / 20;
this._y += this.diry / 20;
};
pul2_fired.onEnterFrame = function()
{
this._x += this.dirx / 20;
this._y += this.diry / 20;
};
};