package game.GameMenu
{
	import flash.display.Bitmap;
	import flash.events.MouseEvent;
	import flash.geom.Point;
	import flinjin.graphics.Sprite;
	import flinjin.input.Input;
	
	/**
	 * ...
	 * @author Michael Miriti
	 */
	public class GameMenuItem extends Sprite
	{
		
		public function GameMenuItem(spriteBmp:Bitmap, rotationCenter:Point = null, animated:Boolean = false, frameWidth:uint = 0, frameHeight:uint = 0, frameRate:Number = 1)
		{
			super(spriteBmp, rotationCenter, animated, frameWidth, frameHeight, frameRate);
			StopAnimation();
		}
		
		override public function Move():void
		{
			if ((Input.MousePosition.x >= x) && (Input.MousePosition.x <= x + width) && (Input.MousePosition.y >= y) && (Input.MousePosition.y <= y + height))
			{
				currentFrame = 1;
			}
			else
			{
				currentFrame = 0;
			}
			super.Move();
		}
	}

}