/ Published in: ActionScript

basic template for AS2 class
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** Project: File: untitled Purpose: Usage: Created On: 2006-07-24 (c) 2006 Stephen.Hamilton MRM World */ //import com.ClassName class com.untitled extends MovieClip { /** PRIVATE PROPERTIES: * ------------------- */ private var _propName:String; /** CONSTRUCTOR: * ------------ */ function untitled () { super(); } /** PUBLIC METHODS: * ---------------- */ public function init(arg:Object):Void { trace("init "+this) } /** EVENTS: * ------- */ public function eventMethod(arg:String):Void { } /** GETTERS/SETTERS: * ------- */ public function set propName(arg:String):Void { _propName = arg; } public function get propName():String { return _propName } /** PRIVATE METHODS: * ----------------*/ private function cleanUp():Void { } private function privateMethod(arg:String):Void { } /** * When movieclip and children have loaded, start application */ private function onLoad():Void { } }
Comments
