marconiduarte / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

New Query String / FlashVars method -- passes *all* query string pairs as Object instead of String #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This was discussed on the list on Jan. 12, 2009.

Request: A method to allow developers to easily bring *all* query string 
name/value pairs from the URL into Flash as an Object instead of a single 
long String.

Advantages over getQueryParamValue:
-- You don't have to know the query string variable names in advance
-- You don't need a separate line of code for each variable you're 
importing. This provides a quick and easy way of bringing in *all* the 
variables at once.
-- No errors from spelling mistakes in the param names listed in the 
getQueryParamValue method. 
-- Updates to your SWF don't require updates to your HTML to accommodate 
new or changed variable names.

I have written sample code that is functional. Demo and source code: 
http://www.zeroggames.com/lab/flashVars/flashVarsTest.html?
foo=bar&foo2=bar2

Source code also attached to this message. 

Thanks!

Original issue reported on code.google.com by elliot.m...@gmail.com on 13 Jan 2009 at 4:42

Attachments:

GoogleCodeExporter commented 9 years ago
Should be listed as an enhancement, not a defect.  

Original comment by elliot.m...@gmail.com on 13 Jan 2009 at 4:42

GoogleCodeExporter commented 9 years ago
See discussion at:
http://groups.google.com/group/swfobject/browse_thread/thread/de7a42e28d64c042

Original comment by bobbyvandersluis on 13 Jan 2009 at 11:13