accessing string created error's getstacktrace function resulting in unusual behaviour in flashdevelop ide.
package { import flash.display.sprite; public class main extends sprite { public function main():void { print("start"); var err:error = new error(); var stack:string = err.getstacktrace(); print(stack); // occurs when replaced stack.length or stack[0] print("end"); } private function print(input:*):void { trace(input); trace("---"); } } }
when run in flash cs4 outputs
start --- error @ main() --- end ---
but when run in flashdevelop (replacing trace()
flashconnect.trace()
) outputs
start ---
is bug, or flashdevelop handling errors in different way intentionally?
if latter there workaround access stacktrace of error?
i managed fix switching using dubugging version of flash player, hope helps else problem.
Comments
Post a Comment