package  {         //包定义:首先本程序需用到的内建类
	import flash.display.Sprite;
	import flash.display.Graphics;
	
	public class Arrow extends Sprite{    //自定义Arrow类,实现相关操作

		public function Arrow() {
			init();
		}
		public function init():void {     //画线并填充
			graphics.lineStyle(1,0,1);
			graphics.beginFill(0xffff00);
			graphics.moveTo(0,25);
			graphics.moveTo(0+100,25+100);
			graphics.lineTo(50+100,25+100);
			graphics.lineTo(50+100,0+100);
			graphics.lineTo(100+100,50+100);
			graphics.lineTo(50+100,100+100);
			graphics.lineTo(50+100,75+100);
			graphics.lineTo(0+100,75+100);		
			graphics.lineTo(0+100,25+100);							
			graphics.endFill();
		}
	}
}