Pass variable from php address line to flash

Hi,
I know this is really easy to do because I did it before I just can’t seem to find how…

I’m using Joomla and I would like to pass a variable from an address line like

http://develop.acieap.com/index.php?..d=60&Itemid=51

I would want to get id and Itemid and just pass it to flash possibly using php or as3 or both.

Any ideas?

Thanks!!