AS2类模板
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AS2类模板相关的知识,希望对你有一定的参考价值。
basic template for AS2 class
/** 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 { } }
以上是关于AS2类模板的主要内容,如果未能解决你的问题,请参考以下文章