/ Published in: ActionScript 3

File > Settings... > File and Code Templates
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#parse("ActionScript File Header.as") package ${PACKAGE_NAME}#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "") #end{ import flash.events.Event; public class ${NAME} extends Event { public function ${NAME}(type:String, bubbles:Boolean = false, cancelable:Boolean = false) { super(type, bubbles, cancelable); } public override function clone():Event { return new ${NAME}(type, bubbles, cancelable); } public override function toString():String { return formatToString("${NAME}", "type", "bubbles", "cancelable", "eventPhase"); } } }
Comments
