Return to Snippet

Revision: 65665
at January 9, 2014 18:30 by hejaaa


Initial Code
#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");
	}

}
}

Initial URL


Initial Description
File > Settings... > File and Code Templates

Initial Title
IntelliJ template - Event

Initial Tags
event, template

Initial Language
ActionScript 3