URL Query String

How can I get the document URL and query into a variable in actionscript?

I tired using the method below, but this does not work in IE.
http://actionscript.org/forums/showthread.php3?p=561688

Here is an example you can try in both Firefox and IE.
http://hombrefeo.com/fla/?foo1=bar1&foo2=bar2