I can't use trace because I'm not using an Adobe IDE and when I try to view my exception errors, I can't seem to get the full error message, I only seem to get the "errorID". For example, if I had a 1069 error, I should see something like:
Error #1069: Property data not found on X and there is no default value.
But instead I see this...
ReferenceError: Error #1069
This is my code...
try
{
//error gets thrown here
}
catch(e:Error)
{
extTrace('Error: '+e.toString());//I also tried e.message, e.name & ObjectUtil.toString(e.getStackTrace())
}
This is just a function for simplifying logging to console. I'm not sure if it's the reason for the issue or not, due to console.log(''), but whatever...
private function extTrace(traceString:String):void
{
ExternalInterface.call("console.log('"+traceString+"')");
}
I also tried e.message, e.name & ObjectUtil.toString(e.getStackTrace())