Detecting the region according to the IP address

Hi,
i Have a swf that has a world map devided into 3 regions…ASIA,AMERICAS,EUROPE…
i need the appropriate region highlighted according to the users IP.i can use ASP file to detect the IP.

1.My problem is to get the IP from the AS Page to SWF File.

2.and determin which region does this ID belongs too…

Please Somebody whose an expert in AS2 help me.

Thanks
Nameez