var bullet:FlxSprite = new FlxSprite(playerShip.x, playerShip.y); bullet.makeGraphic(1,1,0xff333333); var drawShape:Shape = new Shape(); drawShape.graphics.lineStyle(3, 0xff333333, 1); drawShape.graphics.moveTo(startX, startY); drawShape.graphics.lineTo(targetPoint.x, targetPoint.y); bullet.pixels.draw(drawShape) add(bullet);