Hi!
I have a global function for loading php data:
_global.MovieClip.prototype.loadPHP = function(Url, Data) {
var php_result:LoadVars = new LoadVars();
php_result.onLoad = function(success:Boolean) {
if (success) {
// Connection OK
if (!php_result.error) {
this.Title.text = "Some info";
this.gotoAndStop(2);
} else {
this.Title.text = "Some info";
this.gotoAndStop(3);
}
} else {
// Connection Error
}
};
var php_send:LoadVars = new LoadVars();
php_send.sendAndLoad(Url,php_result,"POST");
};
It works as it should, except I can’t access the Title.text or gotoAndStop from within the onLoad function. I’ve tried without the “this.” aswell. It works fine outside the onLoad function.
Any ideas?