/ Published in: ActionScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
dynamic class classes.MainController extends MovieClip { /** ----------------------------------------------------------- * Constructor * ----------------------------------------------------------- */ public function MainController(){ trace("Document Class loaded"); }; public static function main(target:MovieClip):Void { target.__proto__ = MainController.prototype; Function(MainController).apply(target, null); }; /** ----------------------------------------------------------- * Properties * ----------------------------------------------------------- */ /** ----------------------------------------------------------- * Public Methods * ----------------------------------------------------------- */ /** ----------------------------------------------------------- * Private Methods * ----------------------------------------------------------- */ }
Comments
