Passing URL Variables to Flex
Michael's post on Passing variables to Flex 2 in the embed page (or URL string) really helped shed some light on this issue.
According to the docs, you simply pass the variable via the src attribute in the wrapper OBJECT or EMBED tags. Unfortunately, this simply isn't true because if you open up the html-template file that Flex uses to generate the HTML wrapper page, you will notice that tag is only for "NOSCRIPT" browsers. If you want to change it for any modern browser, then you actually need to pass it in the JavaScript in the header that generates the Flash Object inside the function AC_FL_RunContent.
Be mindful that there are actually two functions that do this, the first one is the object/embed tag for browsers that don't have the latest Flash player. You actually want to append the URL into the function inside the Else statement. Simply append it to the FlashVars Name Value pair. Here is an example:



There are no comments for this entry.
[Add Comment]