hello,i am new to Away3D 4.0.
recently,i export a collada file from 3ds max 2011 (open collada),and then i put it into prefab3D for exporting awd2 file, this collada is not a bone animation file,it is just a simple movement such as rorate,moving xyz…..
i find many tutorial about awd2 “bone animation” in google search ,but how to play the animation just like my case( no bone,movement only)??
my code is now look something like this:
//load awd
Parsers.enableAllBundled();
var _loader:Loader3D = new Loader3D();
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
_loader.load( new URLRequest(’./awd/COLA3/COLA3.awd’) );
function onResourceComplete(ev : LoaderEvent) {
trace(“loaded”);
_view.scene.addChild(_loader);
_view.camera.lookAt(_loader.position);
Mesh(_loader.getChildAt(0)).animator.start();
}
but i get a error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.