i have embedded the flash file in an html page and when a user opens that page, can we retrieve his browsers userAgent string from actionscript
Try this;
import com.macromedia.javascript.*;
var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);
function getBrowserInfo():Void
{
proxy.call("getBrowserInfo");
}
function getBrowserInfoReturn(browser:Object):Void
{
//can get more info from System.capabilities
for(var x:String in browser)
{
trace(x + " : " + browser[x]);
}
}
getBrowserInfo();
And check here for implementation.
http://osflash.org/projects/flashjs/...s/jsinfo2flash