PDA

View Full Version : Passing URL query string to swf using FlashVars


mmesarina
07-27-2007, 01:22 AM
Hi,

I want to pass the query part of the URL to the SWF using Flash Vars. The example in the Flash documentation below, passes FIXED values for fields (ie value="username=Thomas"). But what I want to do is to get the the "query" part of the URL and pass this as a value. So what I would really need to do is to use the javascript "location.search" object call and pass the result as the value.
But how do I do this inside the HTML <param> element?

I am new to programming in HTML and javascript , any suggestion is appreciated.

thank you

-Malena