Getting a value of the URL to open XML file

Hello guys… i’m a little worried about this work that i have to do…

I have a PHP system that generates some XML files for gallerys… each gallery has an XML file… like… the gallery 1 has the file gallery1.xml.

Ok…

I’ll have an index… with all the gallerys to choose, made in PHP… but… when you enter in a gallery… it will have an SWF that open the XML file of that gallery…

like…

i click on gallery one… and my URL address will be…

http://localhost/mysite/viewGallery?gallery_id=1 (or any other number)

i want to know what i need to do for my SWF file read this URL variable (gallery_id) and open the right XML file…

sorry for my bad english…
and sorry if you don’t undertand what i need :frowning: