PDA

View Full Version : Pulling variables from a URL


rpdwyer
02-09-2009, 11:38 PM
I have an HTML page called "mypage.html" with a form on it. The form contains a text field called "FName" and when submitted, it loads "mypage2.html" with a Flash file embedded within it.

Using actionscript is it possible to pull the passed value "FName" to an actionscript variable. Previous threads mentioned the GetURL parameter but CS4 kicks it back saying it is no longer supported.

I'm also a bit confused on whether actionscript can pull variables directly from the browser URL. I found a reference to the variables being placed in the HTML code that embeds the SWF file:

<param name="movie" value="mySWFmovie.swf?myvar=heyyou" />'

Why would this be the location to configure the passed parameters and not directly from the browser URL?

Thanks for any help.