try root.loaderinfo.parameters

Sent from my iPhone

On Apr 23, 2010, at 11:37 AM, "Mendelsohn, Michael" <michael.mendels...@fmglobal.com > wrote:

Hi list...

I'm trying to pass along navigator.userAgent to flahsvars through swfObject and I can't get it to work. Here's what I have:

<script type="text/javascript">
   var flashvars = {};
   flashvars.navUA = navigator.userAgent;
   var params = {};
   params.allowScriptAccess = "true";
swfobject.embedSWF("mySWF.swf", "myswf", "660", "510", "9.0.28", false, flashvars, params, {});
</script>

In the document class in the swf, I have this line:
ExternalInterface.call("getVar", root["navUA"]);

I'm getting nothing.  Anyone know of a working technique?

Thanks!
- Michael M.


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to