Hi,
I have a simple scene where I load a DAE model using:
...
var collada:Collada = new Collada();
var l: Loader3D = new Loader3D ();
l = Collada.load("./test.dae");
l.addEventListener(Loader3DEvent.LOAD_SUCCESS, onModelLoadSuccess);
l.addEventListener(Loader3DEvent.LOAD_ERROR, onError);
l.addEventListener(Loader3DEvent.LOAD_PROGRESS, onProgress);
...
private function onModelLoadSuccess(e:Loader3DEvent):void {
trace("loaded");
_car = ObjectContainer3D(e.loader.handle);
_car.rotationX = 90;
_car.scale(0.6);
modelContainer.addChild(_car);
}
offline it's working fine and my dae model is showing up. But when I
test my swf online I'll end up in my onError function (onProgress
lists up some bytesloaded and the 0 0 at the end):
error: [Event type="loadError" bubbles=false cancelable=false
eventPhase=2]
I tried to remove my textures from the dae and set autoLoadTextures to
false. Still no model online (working offline). My test cube is
showing up.
Any hints?
away3d 3.6
flashplayer 10
firefox 4