Getting a 1046: Type not found or was not a compile-time constant: Loader3DEvent error.
I import the away3d.events.Loader3DEvent
And my functions are:
function loadModel():void
{
var loader3D:Loader3D = Collada.load(“daeModel/stock.dae”);
loader3D.addEventListener(Loader3DEvent.LOAD_SUCCESS, onModelLoadSuccess);
}
function onModelLoadSuccess(event:Loader3DEvent):void
{
cow = event.loader.handle as ObjectContainer3D;
cow.scale(5);
cow.moveDown(1);
view.scene.addChild(cow);
}
But it does not like the (event:Loader3DEvent) line.
Any thoughts? Thanks.
I just upgraded to Flash CS6 with AIR 3.4. Thanks.