Hi,
I have a problem with a model which is good in awaybuilder but whick does an exception in the parseLight function in my appli.
TypeError: Error #1009: Il est impossible d’accéder à la propriété ou à la méthode d’une référence d’objet nul.
at away3d.loaders.parsers::AWD2Parser/parseLight()[C:\Data\ComposantsPerso\2013\AdobeFlashBuilder4.7\WebglueViewer\src\away3d\loaders\parsers\AWD2Parser.as:1082]
at away3d.loaders.parsers::AWD2Parser/parseNextBlock()[C:\Data\ComposantsPerso\2013\AdobeFlashBuilder4.7\WebglueViewer\src\away3d\loaders\parsers\AWD2Parser.as:386]
at away3d.loaders.parsers::AWD2Parser/proceedParsing()[C:\Data\ComposantsPerso\2013\AdobeFlashBuilder4.7\WebglueViewer\src\away3d\loaders\parsers\AWD2Parser.as:317]
at away3d.loaders.parsers::ParserBase/onInterval()[C:\Data\ComposantsPerso\2013\AdobeFlashBuilder4.7\WebglueViewer\src\away3d\loaders\parsers\ParserBase.as:447]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
The reason is that the “lightType=_body.readUnsignedByte();” is 0 and in this case the light object remains null (they’re is no if in this case).
So when the debugger try to access this null object i have an exception.
Solution :
The problem was that matrix storage settings which were changed to precision (not size by default). This settings seems not to be understood by the awd2 parser when loading a simple awd file (see attachment)