View Single Post
  #1 (permalink)  
Old July 20th, 2007, 06:51 PM
132591 132591 is offline
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default LoadVars with PHP

I am new to flash (Still on the 30 day trial of CS3) but I am not as new to PHP. I heard about this loadvars thing, and googled it, and it said with some code I could load the variables from a PHP file. I am trying that out, so here is my code.

Code:
//test loadvars function

testVarPhp = new LoadVars();
testVarPhp.load("http://www.gamepasta.com/testvar.php");

//make testVarText read the same as testVar.testvar
testVarText.text = testVarPhp.testvar;
I checked about 4000 times all the spellings of files and variables and the name of the text field and stuff. The text field displays the word "undefined" and I don't know what that means. When I checked the script for errors, it said it had none, so I have no idea what is going on, please help.

"Judge a man by his questions, not by his answers."
-Voltaire
__________________
\"Judge a man by his questions, not by his answers.\"
-Voltaire
Reply With Quote