Groups | Blog | Home
all groups > flash (alternate) > january 2005 >

flash (alternate) : variables question


paranoid-android
1/9/2005 7:24:45 PM
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




paranoid-android
1/9/2005 10:49:45 PM
sorted it.

good old _root!!

Jeckyl
1/9/2005 11:21:23 PM
yeup .. nothing like a good old _root

:)

AddThis Social Bookmark Button
View Other Months
January 2005
February 2005