hi, i have a question... how to get a Var from php into an running flash application scripted in as3? There was a function called _root in as2 but it seems not to work in as3?!?
Is there a easy way (without a socket) to receive php vars in as3?
Thx
hi, i have a question... how to get a Var from php into an running flash application scripted in as3? There was a function called _root in as2 but it seems not to work in as3?!?
Is there a easy way (without a socket) to receive php vars in as3?
Thx
I think you're talking about getting FlashVars from the embedded SWF, in AS2 they were attached to _root. Now they are attached to the LoaderInfo.parameters property for a particular loaded SWF object.
So to get the one from root you could do
var flashVars:Object = LoaderInfo(this.root.loaderInfo).parameters;
And grab your loaded vars like this...
flashVars.myVar;