I have a musql database on a personal web server which correctly
displays the variable I want in flash. However I wish to change my
variables now they are in flash.
I had this working but ive edited the code and cannot now get it to work
again.. can someone help at all?
code in flash...
myLoadVar = new LoadVars ();
myLoadVar.load("test.php"); //loads php that gets variables from mysql
myLoadVar.onLoad = function (success)
{
if (success == true)
{
Field1.htmlText=myLoadVar.age;
Field2.htmlText=myLoadVar.credit;
Field3.htmlText=myLoadVar.weight;
Field4.htmlText=myLoadVar.height;
Field5.htmlText=myLoadVar.nickname;
}
}
i have a button on the flash screen that when pressed I wish it to
change one of the above variables, As I mentioned i did have this
working but ive forgotten how i refreshed or updated the flash with the
new variable
button code in flash...
on (press)
{
myLoadVar.credit=0;
//I had something here that updated the display i think
}
but it does not update the display. i know im missing something very
simple but i think ive been staring at screen too long, second pair of
eyes and all that!...
cheers