I've created a Bullet.as class that contains the following code:

Actionscript:
package {
import flash.display.MovieClip;
import flash.events.Event;
public class Bullet extends MovieClip {
private var speedX:Number=10;
private var pozX:Number;
private var pozY:Number;
function Bullet(pozX, pozY):void {
this.x = pozX;
this.y = pozY;
this.addEventListener(Event.ENTER_FRAME,moveBullet);
}
public function moveBullet(evtBullet:Event):void {
evtBullet.target.x+= speedX;
if (evtBullet.target.x > stage.stageWidth - evtBullet.target.width / 2 || evtBullet.target.x < evtBullet.target.height / 2) {
speedX=- speedX;
}
}
public function stopBullet():void {
this.removeEventListener(Event.ENTER_FRAME, moveBullet);
}
}
}
And I linked my class to the movie clip object in my library via the LINKAGE option.
My main FLA file contains this code:

Code:
var newBullet:Bullet = new Bullet(10,200);
addChild(newBullet);
var newBullet2:Bullet = new Bullet(200,200);
addChild(newBullet2);
if (newBullet.hitTestObject(newBullet2)) {
trace("HIT");
newBullet.stopBullet();
newBullet2.stopBullet();
}
Ca someone explain to me why the IF statement is not working if these to objects (bullets) collide?
I must say the I've noticed that IF statement works if these two objects are not moving but they intersect each other.
What am I doing wrong here? Thank you.