Here is the javascript solution I was thinking of, posted by Doug
Lowder:
You can also use a bit of JavaScript code to simply pass whatever URL
parameters have been specified for the HTML on to your SWF, if that's
what you're after. I usually edit the HTML template and include the
following:
// In the Globals area near the top
var myvars = new String(document.location).split('?')[1];
// the line in AC_FL_RunContent that specifies flashvars
"flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id + '&' +
myvars,
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, May 21, 2007 5:29 PM
To: [email protected]
Subject: RE: [flexcoders] Simple URL Parameters
The html file by itself does not know to do anything with the
querystring parameters. You need to take those values and pass them the
the embedded swf using flashvars.
Someone recently posted a javascript example that does this. Search the
archives.
Or have the wrapper generated by some server side functionality like asp
or jsp or CF and pass the variables through the "AC_FL_RunContent()"
function. There is more in the archives on this as well.
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of mazarflex
Sent: Monday, May 21, 2007 5:17 PM
To: [email protected]
Subject: [flexcoders] Simple URL Parameters
i am trying to GET parameters from a url string into my flex
application. Such as
www.michaelazar.com/TestPage.html?fname='Michael'lname='Azar'
i have tried many helps but all seem to use XML i just need a simple
GET method to work. Maybe even bindable thanks