As Alex says, pass it through flashvars, but this PHP really should be:
$_SERVER['REMOTE_ADDR']
The json extension is conveniently used to turn off flashes, for example. to go to swfobject:
var flashvars = { IP : <?=json_encode($_SERVER['REMOTE_ADDR'])?> };
Tim whitlock
source share