Error #1009: Cannot access a property or method of a null object reference

Software: Away3D 4.x

Rima, Newbie
Posted: 24 March 2014 11:43 AM   Total Posts: 12

Hello,

I’m trying to develop shallowwaterdemo in away3d4. 1.6

First, I’m trying this in one of the old versions of away3d it works well, but when I locked the machine (ctrl+alt+delete) I’m running into the error #3694 The error is: “The object was disposed by an earlier call of dispose () on it.

Then I try shallowwaterdemo in away3d4. 1.6 I did not get correct output yet and I’m faced with a lot of errors due to mismatch classes.

Now I’m facing one actionscript error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at DesktopWaterdemo/enterFrameHandler()[E:WaterdemosrcDesktopWaterdemo.as:877]

 


This is my referral code link.
https://github.com/away3d/away3d-examples-fp11/blob/master/src/Advanced_ShallowWaterDemo.as

error on this line,
var subGeometry:SubGeometry = plane.geometry.subGeometries[0] as SubGeometry;
  subGeometry.updateVertexData(fluid.points);
  subGeometry.updateVertexNormalData(fluid.normals);
  subGeometry.updateVertexTangentData(fluid.tangents);


Does anyone know what the error is and how to avoid it?

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X