Hi all - I've managed to get flash to trace the variables from my test file which was in the same directory as the working folder using :
myVars = new LoadVars();
myVars.onLoad = function (success) {
if (success) {
trace (" variables loaded ");
for( var prop in this ) { trace(" key " + prop + " = " + this[prop]); }
} else {
trace (" Error loading variables ");
}
}
However - nothing I can do seems to give me access to the vars besides that trace. I thought I could get to them like this throughout my code
testvar = myVars.you;
But no luck it seems. How can I get them into global variables?
Also, is there an easy check to compare whether arguments were sent via the url query or via POST from a form or something? So I could check the url and if they didn't send the arguement in that check the POST data, or vice versa.
Thanks guys. Never used flash for external stuff before.
_________________________________
Leozack
myVars = new LoadVars();
myVars.onLoad = function (success) {
if (success) {
trace (" variables loaded ");
for( var prop in this ) { trace(" key " + prop + " = " + this[prop]); }
} else {
trace (" Error loading variables ");
}
}
However - nothing I can do seems to give me access to the vars besides that trace. I thought I could get to them like this throughout my code
testvar = myVars.you;
But no luck it seems. How can I get them into global variables?
Also, is there an easy check to compare whether arguments were sent via the url query or via POST from a form or something? So I could check the url and if they didn't send the arguement in that check the POST data, or vice versa.
Thanks guys. Never used flash for external stuff before.
_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);