I would like flash to detect whether or not a user has voted in a flash poll by comparing a list of ip addresses [that have voted] to the user's current ip address. (I am using this in conjunction with shared object for redundancy.)
I have searched the forum and have found a way to pass (through a php script) the ip address using the following actionscript code:
Code:
getIP = new LoadVars();
getIP.onLoad = function() {
        trace(this.ip);
};
getIP.load("http://domain.com/folder/get_ip.php");
How do I assign the output to a variable in flash?
Then, after assigning the ip address to a variable, I would like to pass that ip address to a[n ambigious] .txt file where it will be saved to a list of ip addresses of those who have already voted.

So when a user runs the poll swf it first compares his ip address to those listed in the txt file. How do I compare a single piece of data to a list of data? (arrays?)

After that point I will just have a return of something like voted=0 or voted=1...I know what to do from there. My coding skills just are not that great.
Anyway, thank you for taking the time to read...
Any help to these questions is greatly appreciated,
Todds