Flash 8 Document Class


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. dynamic class classes.MainController extends MovieClip
  2. {
  3. /** -----------------------------------------------------------
  4.   * Constructor
  5. * -----------------------------------------------------------
  6. */
  7. public function MainController(){
  8. trace("Document Class loaded");
  9. };
  10.  
  11. public static function main(target:MovieClip):Void {
  12. target.__proto__ = MainController.prototype;
  13. Function(MainController).apply(target, null);
  14. };
  15.  
  16.  
  17. /** -----------------------------------------------------------
  18. * Properties
  19. * -----------------------------------------------------------
  20. */
  21.  
  22.  
  23. /** -----------------------------------------------------------
  24. * Public Methods
  25. * -----------------------------------------------------------
  26. */
  27.  
  28.  
  29. /** -----------------------------------------------------------
  30. * Private Methods
  31. * -----------------------------------------------------------
  32. */
  33.  
  34. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.