[fmx2004]Trigonomic Shooting

Hi, I am currently making a game in which you are in an overhead view. You can rotate, and I need to be able to shoot in w/e direction you are facing. I have a code, and when I shoot, it does shoot in the direction you are facing, but If you change direction, the bullet also changes direction. I know why, and I need desperate help. Here is the code:

In the frame:
[AS]onLoad = function () {
i = 1;
bullet._visible = false;
onEnterFrame = function () {
x = Math.cos(sqr._rotation*Math.PI/180)5;
y = Math.sin(sqr._rotation
if (Key.isDown(Key.UP)) {
sqr._rotation += 5;
if (Key.isDown(Key.DOWN)) {
sqr._rotation -= 5;
if (Key.isDown(Key.SPACE)) {
bullet.duplicateMovieClip(“obj”+i, i);
this[“obj”+i]._visible = true;

In the bullet:

[AS]onClipEvent (load) {
this._x = sqr._x;
this._y = sqr._y;
onClipEvent (enterFrame) {
this._x += _root.x;
this._y += _root.y;

here is the .fla: