package Game.Objects
{
	import flinjin.graphics.Sprite;
	
	/**
	 * ...
	 * @author Michael Miriti
	 */
	public class LaserTrail extends Sprite
	{
		
		[Embed(source="../../bmp/laser_trail.png")]
		private static var _trailBitmap:Class;
		
		public function LaserTrail()
		{
			super(new _trailBitmap());
			setCenterInBitmapCenter();
			scale = 0.01;
		}
		
		override public function Move():void
		{
			scale += 0.05;
			if ((scale >= 2) || (alpha <= 0))
				Delete();
			super.Move();
		}
	}
}