I would like to capture a site visitor's IP address and in a normal Web page I would use something like the following:
<%
Dim UserIPAddress
UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If UserIPAddress = "" Then
UserIPAddress = Request.ServerVariables("REMOTE_ADDR")
End If
%>
I think I can use the same script in a Flash site, but what would I need to do in my FLA file? I do not want to show the IP address in my movie - only to 'capture' it.
When you put the flash on your page do something like this
someflashfile.swf?ip=codetoprintoutuseripaddress
then in the flash file you can use var ipaddy = this.ip;
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
Umm no reread my post carefully. Mainly this part someflashfile.swf?ip=codetoprintoutuseripaddress
this is the part that goes in your actual page. You use var ipaddy = this.ip in your actionscript.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||