Please read this post, this API has been updated!
Are you looking for the geographical location of an IP address?
IPinfodb offers a you that service, for FREE!
We just ported the service to an ActionScript 3.0 API to open it up for other Flash and Flex developers …
Get your SWC library here. Online documentation for the API.
For this example i used Flex, but the workflow is similar for Flash programmers.
Add the .SWC file to the libs folder of your flex project.
Calling the API functions, can easily be done.

great post mate ,
I think IP tracking in flash is very useful and there are not many tutorials/API’s on the net. Great job!
Well, there are some other good IP services, but they are usefully not free, and don’t offer a good uptime like the ipinfodb service!
Very cool! You should add this to Tour de Flex.
-James
thanks, we work with ip locators a lot & i seem to have missed this one. thanks for the link.
when work with flash using your swc,it output this error:
VerifyError: Error #1014: can’t find class ipinfodb.events::IPinfodbEvents
i don’t konw what’s wrong with the your swc files….would you please help me ?
Hi forrest,
There is nothing wrong with the SWC, you probably forgot to import the reference to the IPinfodbEvents.
import ipinfodb.events.IPinfodbEvents
If it’s not working, please supply some more details…
Cool! Can i use it in commercial projects?
I’m quite sure you can, but: please check with the use policy on the ipinfodb.com website or send an e-mail concerning your question to: marcandrecaron1@gmail.com
IpInfodb works in flash CS3?
how?
are there any library or swc for flash?
Thank’s
This API also works with Flash CS3, you can download the SWC as described in the post above. Code is the same.
Furthers questions can be posted here.
I have the SWC and the Flex project.
I have opened the program in flex and it works fine but in flash CS3 dont find the SWC, I have copied the file iplocations.SWC in \Adobe\Adobe Flash CS3\es\Configuration\ Is this correct?, when compile error: 1172:Common Class Definitions Not Found.
Can you help me, it´s very important.
Thank,s
Hi,
You will have to reference to the SWC file from Flash.
http://www.adobe.com/devnet/flash/articles/flex_to_flash_03.html
Read more about the issue at title: Testing the project in Flash
Hope it finds you right.
Otherwise I will hear it …
Good Luck!
Hmm. Is it true?
looks like ipinfodb just released their new apis. Will you be updating the swc to use the new apis?
Hello Dann,
Is there a reason why the services is unavailable for a while?
Hi the services actually have a new API … I will be updating this in a while… Please check this post later to find an update
There have been updates to the API, please read this article to get the updated ActionScript files: http://creative-geeks.com/blog/2011/01/30/ipinfodb-actionscript-3-0-new-api/
Nice blog here! Also your site lots up fast! What host are you using? Can I get your associate hyperlink in your host? I wish my website loaded up as fast as yours lol
You could certainly see your enthusiasm in the work you write. The world hopes for even more passionate writers like you who aren’t afraid to say how they believe. Always follow your heart.
sir i tried your geolocator by using IP but i got error message in the text area… immediately i checked your application it also shows the same..can u please help me in this?
Hi sudharsan,
There were some updates concerning the IP location API. You should have a look at the updated version.
Find it here
Hope this works out for you!
Regards
Thanks sir..
Its much helpful..but i want to integrate this with my flex application to restrict the user other part of the world other than from united states.so i need mxml file and swc(as like the above example contains)plese help me..Timely help is better in this world..again thanks for ur help
sudharsan.s
Hi Sudharsan,
Based on our blogpost here you can easily get this to work for your desire. Unfortunately we don’t have this ready made for you! But we can always provide you with further assistance. Basically you can just check which country the IP has and then do the validation …
Good luck!
Thanks sir…
i will try to redine ur code according to my need.i will update u regarding the progress
sir i had altered the code.finally i merge it with my application it sounds great.u ly made this possible…thank u very much sir…but now iam using maxmind geocity freeware accuracy may be of 80% if u need it i will send my code..Again thanks a lot for ur kind support…