Shooting problem

I’ve tried 3 ways of doing this and i still keep getting the same result. Is there a way to shoot a bullet from the mouse using the attachMovie? I have got this code, but everytime you click, the previous bullet stops moving.

bullets = new Array();
i = 0;
onMouseDown = function () {
    i++;
    bullets* = attachMovie("bullet", "bullet"+i, i);
    bullets*._x = _xmouse;
    bullets*._y = _ymouse;
};
onEnterFrame = function () {
    bullets*._y -= 10;
};

can anyone point me in the right direction or suggest a tutorial or anything?