import flash.system.Capabilities;
var type:String = Capabilities.playerType;
switch(type){
case "External":
//Flash IDE
break;
case "StandAlone":
//Projector
break;
case "PlugIn":
//Firefor or Safari
break;
case "ActiveX":
//IE
break;
}
Thursday, June 11, 2009
Detecting if flash is running on a browser or standalone
If for some reason we need to know if flash is running a browser, projector or the flash ide we can use this code:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment