Is it possible to get client IP address through Flash (swf) Action Script 3 and then pass it to php file to store it in database?
No need to do it in flash, just do it on your server in php "$ip=@$REMOTE_ADDR;"
No, the client IP address is not available in ActionScript 3. The recommended approach is to have it reflected by server-side code.
See http://www.actionscript.org/forums/showthread.php3?s=&threadid=20123