I made the following change around line 263 of the Animation.as file
and this solved the problem:
if(_transition){ // added check to see if _transition is null
if(_transition.interpolate < 1){
_transition.update();
}
}
On Apr 1, 9:29 am, mogg <[email protected]> wrote:
> I get the following error message when I attempt to run any MD2
> animations:
>
> File: Animation.as
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
> at away3d.core.base::Animation/update()[C:\Project Locker\thirdparty
> \libraries\Away3D\branches\flash10\src\away3d\core\base\Animation.as:
> 263]
> at away3d.core.base::Geometry/updateElements()[C:\Project Locker
> \thirdparty\libraries\Away3D\branches\flash10\src\away3d\core\base
> \Geometry.as:972]
> at away3d.containers::Scene3D/update()[C:\Project Locker\thirdparty
> \libraries\Away3D\branches\flash10\src\away3d\containers\Scene3D.as:
> 201]
> at away3d.containers::Scene3D/onUpdate()[C:\Project Locker\thirdparty
> \libraries\Away3D\branches\flash10\src\away3d\containers\Scene3D.as:
> 50]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at away3d.containers::View3D/notifySceneUpdate()[C:\Project Locker
> \thirdparty\libraries\Away3D\branches\flash10\src\away3d\containers
> \View3D.as:227]
> at away3d.containers::View3D/render()[C:\Project Locker\thirdparty
> \libraries\Away3D\branches\flash10\src\away3d\containers\View3D.as:
> 851]
> at AwayBuilder/onEnterFrame()[C:\Project Locker\gamedev
> \Away3DsceneBuilder\AwayBuilder\src\AwayBuilder.mxml:621]
>
> Branch: Flash 10
>
> I don't get this error in the 3.0.0 branch.
>
> Tony (Quest Realm)