自己画图更换鼠标显示形状

CircleCursor类
package
{
	import flash.display.Sprite;
	import flash.geom.Point;

	public class CircleCursor extends Sprite 
		
	{ 
		//画故障选择
	//	[Bindable]private var lp:Point = new Point();
		//[Bindable]private var rp:Point = new Point();
		
		public function CircleCursor(x:int,y:int) 
			
		{ 
//			graphics.lineStyle(3,0xff0000);
//			graphics.moveTo(50,50);
//			graphics.lineTo(100,50);
//			graphics.moveTo(75,25);
//			graphics.lineTo(75,75);

			graphics.clear();
			graphics.lineStyle(3,0xff0000);
			graphics.moveTo(x,y+10);
			graphics.lineTo(x,y-10);
			graphics.moveTo(x-10,y);
			graphics.lineTo(x+10,y);
			super(); 
			
		} 
		
		
		
	} 

}


主体
 
 
	 
		 
	 

	
		
	
	
	 
		 
	 
	
	
		
	



你可能感兴趣的:(button,function,library,application,import,layout,Flex)