Skip to content

Instantly share code, notes, and snippets.

@alloyking
Created July 18, 2012 14:52
Show Gist options
  • Save alloyking/3136659 to your computer and use it in GitHub Desktop.
Save alloyking/3136659 to your computer and use it in GitHub Desktop.
AS3 Custom Event class
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