<!--绘图画线——橡皮筋线--> <?xml version="1.0"encoding="utf-8"?> <mx:Application xmlns:mx="" layout="absolute" creationComplete="draw.graphics.clear()"> <mx:Script> <![CDATA[
import mx.core.UIComponent;
import flash.display.DisplayObject;
import com.andy.IDraw.DrawOnPanel;
public var a:Point = new Point();
public var b:Point = new Point();
public var old:Point = new Point();
public var stateOfDraw:Boolean = false;
public var isDown:Boolean = false;
private var draw:DrawOnPanel = new DrawOnPanel(a,b);
private function doDraw():void {
var component:UIComponent = new UIComponent();
myPic.addChild(component);
component.addChild(draw);
draw.DrawLine(); }