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