Created
July 18, 2012 14:52
-
-
Save alloyking/3136659 to your computer and use it in GitHub Desktop.
AS3 Custom Event class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.utils { | |
import flash.events.Event; | |
public class EventType extends Event { | |
public var arg:*; | |
public function EventType(type:String, bubbles:Boolean = false, cancelable:Boolean = false, ... a:*) { | |
super(type, bubbles, cancelable); | |
arg = a; | |
} | |
override public function clone():Event{ | |
return new EventType(type, bubbles, cancelable, arg); | |
//return this; | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment