Can’t load a 3ds object or any other format

Software: Away3D 3.x

Bill7745, Newbie
Posted: 26 June 2013 10:43 AM   Total Posts: 22

Hi I’m trying to load an object from Blender into away3d but having no luck.

I get this error:


Error #1009: Cannot access a property or method of a null object reference.
at away3d.loaders::Loader3D/loadTextures()[/Users/BillEichman/Desktop/NEW_EXPERIMENTS/away3d/loaders/Loader3D.as:485]
at away3d.loaders::Loader3D/onGeometryComplete()[/Users/BillEichman/Desktop/NEW_EXPERIMENTS/away3d/loaders/Loader3D.as:249]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

I’m using the following code from “The Essential Guide to 3D in Flash” to load a 3ds object:

_loader = new LoaderCube();
  var url:String = ‘anglosaxonblend.3ds’;
 
  _loader.addEventListener(Loader3DEvent.LOAD_SUCCESS, _onSuccess);
  _loader.loadGeometry(url, new Max3DS());
  _loader.scale(1);
  _view.scene.addChild(_loader);
 
private function _onSuccess(ev:Event):void{
 
  trace(‘Finished Loading’);
  }

the cube container shows up on the stage with writing on it but the model isn’t loaded. If someone knows what’s wrong I’d be very thankful.
Thanks

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X