murarinayak / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

DAE parser not bubbling up IOErrorEvent from DaeReader class. #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. dae.addEventListener(IOErrorEvent.IO_ERROR, myhandler);
2. dae.load(badfilename);

What is the expected output? What do you see instead?
Expected error handler 'myhandler' to be called.  Standard Flash error is 
displayed about an unhandled IOError.

What version of the product are you using? On what operating system?
Revision 869 (Vista x64 and IE 7)

Please provide any additional information below.

DAE.as

Add at line 316 - load() method:
  this.parser.addEventListener(IOErrorEvent.IO_ERROR, onParseError);

Add at line 1644 - onMaterialsLoaded() method:
  if (this.parser.hasEventListener(IOErrorEvent.IO_ERROR))
    this.parser.removeEventListener(IOErrorEvent.IO_ERROR, onParseError);

Add at line 1785 - or anywhere:
  protected function onParseError(event:IOErrorEvent):void {
    dispatchEvent(event);
  }

Original issue reported on code.google.com by andy.gri...@gmail.com on 24 Jan 2009 at 7:51

GoogleCodeExporter commented 8 years ago
assigning to Tim

Original comment by neori...@gmail.com on 29 Jan 2009 at 10:44

GoogleCodeExporter commented 8 years ago
Fixed.

Original comment by azu...@gmail.com on 30 Mar 2009 at 2:08