Base Class Template with Zinc init


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



Copy this code and paste it in your HTML
  1. package
  2. {
  3.  
  4. import flash.display.Sprite;
  5. import flash.system.Capabilities;
  6. import mdm.*;
  7.  
  8. public class Main extends Sprite
  9. {
  10.  
  11. public var isZinc:Boolean;
  12.  
  13. /* _____________________________________________________________________________
  14. *
  15. * CONSTRUCTOR
  16. *
  17. */
  18. public function Main()
  19. {
  20. mdm.Application.init( this, onMDMinit );
  21. }
  22.  
  23. private function onMDMinit():void
  24. {
  25. isZinc = ( Capabilities.playerType == "ActiveX" ) ? true : false ;
  26. }
  27. }
  28.  
  29. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.