Flash AS3教程:Direction类和Dot类(2)
http://www.itjxue.com 2015-07-17 23:39 来源:未知 点击次数:
DirectionEvent类源代码:
CODE:
package index.base.events{
import flash.events.Event;
public class DirectionEvent extends Event{
public var up:Boolean;
public var down:Boolean;
public var left:Boolean;
public var right:Boolean;
public static const DO:String = "do";
public function DirectionEvent(type:String){
super(type);
}
}
}
DotEvent类源代码:
CODE:
package index.base.events{
import flash.events.Event;
public class DotEvent extends Event{
public static const X_CHANGE:String = "xChange";
public static const Y_CHANGE:String = "yChange";
public static const R_CHANGE:String = "rChange";
public function DotEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false){
super(type,bubbles,cancelable);
}
}
}