Get variables from URL

Hi Guys,

I’m trying to get variables from the URL a flash movie is playing in. I’ve been searching long and hard for something to do this but nobody seems to have either done it or wanted to do it.

Example:

www.google.com?search=kirupa&images=1

Is there any way of getting the “search” and “images” variables from the URL into my flash movie? I’ve managed to do this by using JavaScript to append these variables to the .swf reference in the EMBED and PARAM but the problem is IE doesn’t seem to read this because it’s already loaded the flash movie before this JavaScript takes place.

Any help would be great.

Thanks,
Chris