Ok,first of all we create a dynamic text field in Flash and give it a variable name of : userip .
Then in the first frame of our Actions Layer we write this code:
Then in the same folder of our movie we create a PHP script called : script.php and inside of it we write this line of code:
Save everything and upload these files to your server to see the results!!!