View Full Version : the flash and backend script again, please help...

11-21-2002, 05:40 AM
hello, i'm very new to using flash

i'm trying to build a page with flash and php, i want

to dynamicaly change the color of my button or mc according to the variable that i declare in my php files, ....

or dynamicaly changing text in one of my Movie clip in association
with variable that i also declare in php files....

where do i start ?

I appriciate if anyone would write some syntax that might help me

thanx for the answer ....

11-24-2002, 08:31 AM
For your php script it the same thing:
echo "&yourPHPVar=yourValue&your2cdPHPVar=your2cdValue&..."

Then in your fla:

loading = new LoadVars();
loading.unique = getTimer(); /*then the path will never be the same, so No cache*/
loading.sendAndLoad("yourscriptpath", loading, "GET");
loading.onLoad(success) {
if (success) {
theSWFVar = this.yourPHPVar;
} else {
//code when not loading, ie error message

I don't test it but it might work. It's the way I use to load my Var from php file, then the var you get are into an object and not all over the mc in wich you load them if you use loadVariales.