Is there a way of having code in a Flash that can actually detect what the IP address of the user is who is viewing that flash.
What I want is have it so a user can only view a particular flash only once. Is it possible??
Im not sure where to begin
Printable View
Is there a way of having code in a Flash that can actually detect what the IP address of the user is who is viewing that flash.
What I want is have it so a user can only view a particular flash only once. Is it possible??
Im not sure where to begin
yes .........use a php script to get ipaddress and Loadvars to pull it into flash and process it.
haha oooooh well. Is there any tutorials you can link me to??? plz plz plz with sugar, icing and ben aflec on top?
no but its an easy thing to google and most webhosts support php...google php ipaddress and flash loadVars
or u can embed your flash movie in a php page itself and pass in the IP address using FlashVars...
Had to use an IP code today, thought I may as well put it here:
Flash (mySWF.swf):
code:
loadVariables("myip.php?r="+Math.random(), _root);
onData = function() {
trace(ip);
};
PHP (myip.php):
PHP Code:<?php
echo 'ip='.$_SERVER['REMOTE_ADDR'];
?>