自定义Event类实现参数的传递
package {
import flash.events.Event;
public class MyEvent extends Event {
public var parameter : Object;
public function MyEvent(type : String,bubbles : Boolean = false,cancelable : Boolean = false,parameter : ōbject = null) {
super(type, bubbles, cancelable);
this.parameter = (parameter == null ? new Object() : parameter);
}
}
}
补充:flash教程,Action