标签:
1 package EventPackage 2 { 3 import flash.events.Event; 4 5 /** 6 * 7 * @author tqr <br /> 8 * 创建时间:2015-2-6 下午5:55:49 9 */ 10 public class MyEvent extends Event 11 { 12 private var _data:*; 13 14 public function get data():*{ 15 return _data; 16 } 17 18 public function MyEvent(type:String, $data:*, bubbles:Boolean=false, cancelable:Boolean=false) 19 { 20 super(type, bubbles, cancelable); 21 this._data = $data; 22 } 23 24 public override function clone():Event{ 25 return new MyEvent(this.type, this._data, this.bubbles, this.cancelable); 26 } 27 } 28 }
标签:
原文地址:http://www.cnblogs.com/shuishenwuyu/p/4642970.html