View3D/updateBackBuffer problem

Software: Away3D 4.x

sendoushi, Newbie
Posted: 20 April 2012 09:09 AM   Total Posts: 15

Hi guys,

So, I’ve reached a strange problem. Everything was working and now it isn’t.
Simplifying the code I have, on my 3D class I do:

view = new View3D();
view.width width;
view.height height;
view.backgroundColor 0x172127;
view.antiAlias 4;
   
addChild(view);
   
view.render(); 

i’m using flash builder by the way and this problem is happening on a .SWF project.
With this code I get the error:
Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)
away3d.containers::View3D/updateBackBuffer
away3d.containers::View3D/render
TriDApp/setUpView
TriDApp
Main

Flash builder also opens a window and says: “source not found”.

Any idea on what is happening around here?

   

sendoushi, Newbie
Posted: 20 April 2012 09:20 AM   Total Posts: 15   [ # 1 ]

For those who have the same problems this happens because the 3d class wasn’t yet added to the stage, so the stage would be null.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X