/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
package { import flash.display.Sprite; import flash.system.Capabilities; import mdm.*; public class Main extends Sprite { public var isZinc:Boolean; /* _____________________________________________________________________________ * * CONSTRUCTOR * */ public function Main() { mdm.Application.init( this, onMDMinit ); } private function onMDMinit():void { isZinc = ( Capabilities.playerType == "ActiveX" ) ? true : false ; } } }