actionscript: global variables
actionscript: global variables
Out of context: Reply #2
- Started
- Last post
- 6 Responses
- nUBBER0
scoping issue perhaps? the onLoad function is in the scope of the loadvars instance.
var scope = this;
var fileName = "";var receiveData = new LoadVars();
receiveData.onLoad = function(success)
{
if(success)
{
scope.fileName = this.urlValue ;
trace (scope.fileName);
}
}receiveData.sendAndL oad("www.blah blah.com/list.php", receiveData, "POST");