Pass variable from php address line to flash

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

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

Any ideas?