AS3 detect player type


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

I use this to load different config urls depending on whether the player is in browser or not.


Copy this code and paste it in your HTML
  1. if (Capabilities.playerType == "StandAlone") xmlProxy.loadData("../xml/config.xml");
  2. else xmlProxy.loadData("xml/config.xml");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.