You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you set the parseData property then all subsequent errors in the browser do not get output to the console. The following example does the trick
static function main()
{
var a:Array<Int> = null;
var queue = new LoaderQueue();
queue.maxLoading = 2; // max concurrent
queue.ignoreFailures = true; // carry on regardless
queue.loaded.add(function(event:LoaderEvent<Dynamic>):Void {
trace("Loaded");
a.push(3);//This will not output a runtime error
}).forType(Complete);
var xmlLoader = new XmlLoader("xml/project.xml");
xmlLoader.parseData = function( xmlData:Xml):Xml {
return xmlData;
}
queue.add( xmlLoader );
queue.load();
a.push(10); //This generates an error as expected
}
The text was updated successfully, but these errors were encountered:
If you set the parseData property then all subsequent errors in the browser do not get output to the console. The following example does the trick
The text was updated successfully, but these errors were encountered: