How to get URL variables

Hello:

I need some help accessing the variables in a url string when my page is loaded.

here is any example of the url.

www.mysite.com/index.php?myVar=picture1.jpg

how do I access myVar ??

I was trying to use root.[COLOR=#000080]loaderInfo[/COLOR].[COLOR=#000080]parameters[/COLOR].[COLOR=#000080]myVar[/COLOR]; But it doesn’t seem to be working at all.

thanks for any help.

~squirt