SharedObjects and LoadVariables

In my FLA That I have included, I have a poll that is made in Flash and PHP. To check whether a person is trying to vote twice I implimented the following procedure:

> Flash movie loads
> Loads variables like choices, question, and poll ID from poll.txt
> Checks for a cookie that holds the ID of the last poll voted on

  • If the ID in poll.txt is the same as the ID in the cookie it goes to view
  • If the ID in the poll.txt file is NOT the same as the ID in the cookie, it goes to the voting form

Somehow, seperatly they work fine. The stuff loads or the cookies work, but when I combined them, it just doesn’t go. I just can’t seem to figure out what’s wrong with the script and why a simple piece of code like


if (user.data.lastvote == _root.pollnum) {
	_root.gotoAndPlay(82)
}

won’t work. Please fix my FLA if you can. All I need is that the the cookies part works. Pool.txt contains the following info:


pollnum=1&question=QUESTION:<BR>Which super power is the coolest?
&choice1=Invisibility
&choice2=Super Strength
&choice3=Metamorphasis
&choice4=Super speed