Need some Flex/Flash help…
April 13, 2008
Hello all:
Often when I post a question here I find someone ready to help, so here I go again.
I’ve got a Flex3 app that I’m trying to pass parameters to. The docs say to either embed them as param tags in the HTML which calls the SWF file (as < param name=’flashVars’ value=’param1=X¶m2=Y’ />) or as a query string on the SWF reference (embed src=’foo.swf?name=mike&zip=27596)
I’ve done this successfully on another project, but now I’m having problems, and I can’t tell what’s changed. Referencing the values in Application.application.parameters when I call the SWF directly (with the query string params), everything’s fine. When I loop through the Application.application.parameters to get the params (either from the query string or flashVars param) when the SWF is embedded in an HTML page, I get nothing. This is an https request, which may have something to do with it (I dunno). Tried this from Firefox 2 on Linux and FF2 and IE6 on XP. No dice. I can’t find any references to things *not* working for people at all, so I thought I’d turn to you. Any light that you can shed on this is appreciated.
Thanks!
Did you like this post? Buy me a hot chocolate!
Posted in




April 13th, 2008 at 9:03 pm
FIXED.
I can’t quite believe I spent half the day on this, but there you go. And I can’t say it wasn’t documented at all, but it was apparent to me. The container HTML page I was dealing with has 2 sections. Javascript at the top which loads the SWF programmatically, and the HTML/EMBED/PARAM stuff at the bottom of the page I was editing, which all lives inside a NOSCRIPT tag. Why on earth we bother with RIAs catering to people with no Javascript is beyond me, but that’s the way this was done. And I just spent way too long editing the wrong stuff.
April 15th, 2008 at 7:31 am
Glad you managed to find this. I’m doing some Flex/Flash stuff for work now, but I still have a lot to learn. Things like this are incredibly frustrating, and not uncommon.