tried this and it didnt work var mesh:Mesh = e.loader.handle as Mesh; mesh.y = 100; mesh.z = 200; _tree.addChild(mesh);
can you give me an example please :) On Sep 14, 1:29 pm, Fabrice3D <[email protected]> wrote: > Add as Mesh once loaded and not before its loaded. > > Fabrice > > On Sep 14, 2010, at 11:11 AM, bebensiganteng wrote: > > > hi guys, > > > is there something wrong with my code? > > > _collada = new Collada(); > > _collada.centerMeshes = true; > > > _loader3d = Collada.load("crate.dae" ); > > > _loader3d.addOnSuccess(onLoaderSuccess); > > _tree.addChild(_loader3d); > > > private function onLoaderSuccess(e:Loader3DEvent):void > > { > > var target:Object3D = ObjectContainer3D(e.loader.handle); > > target.scale(30); > > trace(target); > > > } > > > although i can trace target but i cant seems to see it, or is this not > > the correct way to add collada to the BSP tree?
