Some trouble with LoadVars class in SSAS application
I want to poll external script in applcation using LoadVars instance. That's code:
myVars.onLoad = function (success) {
if (success) {
trace ("variable: "+ myVars.flv);
trace(this.toString());
for( var prop in this ) {
trace (" key " + prop + " = " + this[prop]);
}
application.PlayFLV(myVars.flv);
} else {
trace (" Error loading variables ");
}
}
};
So i can see in Administration Console raw value in this instruction:
trace(this.toString());
but I see also "variable: undefined" on line:
trace("variable: " + myVars.flv);Note: in cycle for i can see all "key = property" pairs i need, including .flv property, but it writes "undefined" as i mentioned!
What's going wrong!?
more: When i'm trying to add array declaration like this:
var propy:Array = new Array();
an application falling down with error: NetConnection.Connection.Failed?!
Can someone explain what's going on? How can I access to required property??
