Getting ip with php and showing it in flash

Hi there,
I have this question regarding a flash movie i m trying to make for uni…

basicaly, i have this simple php script that retrieves the clients ip address and turns it into a variable that can be recognized by flash…

<?
$ip = getenv('REMOTE_ADDR'); //~ get ip address
$ip = "&ip=".$ip."&"; //~ make it a flashable variable
echo $ip; 
?> 

however… as i m completely new to actionscripting and all things flash… i have no clue on how to get the ip to show in a text box inside the flash movie…

if someone could give me a hint or a pointer to a tutorial or something i would greatly appreciate it!

regards,
Evan