This content has been marked as final. Show 4 replies
You need to call a java script function (via the external interface) to
read the query string.
Below is a one I use for the same purpose:
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
var pair = vars .split("=");
if (pair == variable)
You just need to set the flashvars in the containing page from the querystring. So you'll need to use something other than html to process the querystring parameters and append them to your flex swf as flashvars. Then use the techniques in this doc to access those vars. http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001003.html
I've gone trhough your link for this we need to create a wrapper class to pass the queryString to flashVars. and I also found a way to send the querystring through .swf files. I mean http://server.port/AppName/filename.swf?user=smith
It's working fine. But i'm invoking the flex Application on .html as extension. If i use the .swf to invoke the Flex Application Does it gives any prob in future?
Using the wrapper gives you additional functionality like Flash Player version detection and download, and supports ExternalInterface.