Posted By

forchid on 05/05/09


Tagged

as3 zinc


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

spastic


Base Class Template with Zinc init


 / Published in: ActionScript 3
 

  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  

You need to login to post a comment.