[SWFObject] passing JS variables to swfobject
João Coelho
joao at joaocoelho.tk
Thu Jun 29 09:19:17 PDT 2006
Hi Chris, I believe this is happening because flash interprets what is
after the & sign as a new variable, just like in a GET request, as far
as I know you will have to url encode de data passed to flash in order
to get the result you want.
----------------------
João Coelho
Webdeveloper
[t] (+351) 932893684
[e] joao at joaocoelho.tk
[w] www.joaocoelho.tk
----------------------
Chris Barr wrote:
> Hey guys, I'm having a rather unusual problem with variables passed
> through SWF object to flash, and I can't figure out any other way to do
> this properly.
> I'm trying to get the referrer (generated by PHP) sent to a flash
> "enter" button to enter my site. When the button is pressed it sends
> many variables to a PHP form to store this data for me to see later -
> all transparent to the user.
>
> ANYWAY - say someone finds my site via google, so the referrer is set to
> "http://www.google.com/search?client=safari&rls=en&q=eject+media
> <http://www.google.com/search?client=safari&rls=en&q=eject+media>". In
> setting up the flash object I set it to add a variable to my flash movie
> like this - so.addVariable("referrer",
> "http://www.google.com/search?client=safari&rls=en&q=eject+media
> <http://www.google.com/search?client=safari&rls=en&q=eject+media>");
>
> And as you may think, that works just fine...to a point. Flash only
> sees the variable up to the first & symbol! Meaning all I get in flash
> is "http://www.google.com/search?client=safari" - I don't get to see
> what the actual google query is!
>
> This is a very odd problem, but I see no other way to get this var
> passed into flash properly. Any ideas?
>
> *Chris Barr* | media designer | ejectmedia.net <http://www.ejectmedia.net>
>
> * chris at ejectmedia.net <mailto:chris at ejectmedia.net>
> * 336.413.0221
> * aim: ejectmedia
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
More information about the Swfobject
mailing list