Hi
Any help would really be appreciated. I’m new to Away3D and trying to load a model. Here is the code I’m using. It is for AIR mobile. Every time the LoaderEvent.LOAD_ERROR event fires. I’ve saved the object as an awd2 file using prefab. The same happens if I save it as a Obj file as well. Any ideas? Any help much appreciated.
Parsers.enableAllBundled();
loader = new Loader3D();
loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
loader.addEventListener(LoaderEvent.LOAD_ERROR, onLoadError);
loader.load( new URLRequest('myModel.awd') );
function onResourceComplete(ev : LoaderEvent) : void
{ loader.removeEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
loader.removeEventListener(LoaderEvent.LOAD_ERROR, onLoadError);
view.scene.addChild(loader); }
function onLoadError(ev : LoaderEvent) : void
{ textbox.text = "No"; loader.removeEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
loader.removeEventListener(LoaderEvent.LOAD_ERROR, onLoadError);
loader = null; }