Oops... I did add the dae to the scene within that function, so I could see the cube. So it's not that! ;-)
view.scene.addChild(target); On Jul 23, 4:55 pm, Albinal <[email protected]> wrote: > Hi, I've not long finished this:http://www.albinal.co.uk/moped/ > > I say finished but really I'm 99% done pending any useful feedback. > So, what does one think? > > While I'm here I want to move my Away3D knowledge to the next level... > animation. I'm pretty proficient with Blender and can model, texture, > rig and animate... I see that the Collada exporter has a button for > "sample animation" but where do I start? > > I read this:http://away3d.com/index.php?s=animation&x=0&y=0 > > ...but I'd rather not do my animations in the code. I had an > experiment with this and a simple cube rotation: > > var skinAnimation:SkinAnimation; > > function onLoaderSuccess(event:LoaderEvent):void > { > var target = ObjectContainer3D(event.loader.handle); > skinAnimation = (target.animationLibrary["default"] as > AnimationData).animation as SkinAnimation; > > skinAnimation.loop = true; > skinAnimation.start; > > } > > But nothing happened?!? I can trace skinAnimation.length and it > returns 0.4 so something is there but many code combinations later I'm > no further down the line. > > Any help gratefully received.
