still get the same error, if you never tried this, what do you use for loading multiple models?
On Jul 13, 9:05 am, Peter Kapelyan <[email protected]> wrote: > Never tried it but looks like you are missing the variable for object3d, > like: > > After: > var loader:Loader3D = new Loader3D(); > put: > var object3d; > > Just a guess :/ > > -Pete > > On Tue, Jul 13, 2010 at 8:47 AM, Radioactivelizard > <[email protected]>wrote: > > > > > im trying what i found here > > >http://groups.google.com/group/away3d-dev/browse_thread/thread/2643dd... > > > the mentioned > > ------------------------ > > var loader:Loader3D = new Loader3D(); > > loader.addOnSuccess(onLoaderSuccess); > > var awd: AWData = new AWData(); > > loader.loadGeometry("MyBSPTree.awd", awd); > > > private function onLoaderSuccess(e:Loader3DEvent):void > > { > > this.object3d = e.loader.handle; > > view.scene.addChild(this.object3d); > > // note: the use of this is optional here, it just to show you > > a class var use as Object3D > > > } > > ------------------------ > > how do i get the onLoaderSuccess to function properly . > > when compiled i get this error > > col: 14 Error: Access of possibly undefined property object3d through > > a reference with static type main. > > -- > ___________________ > > Actionscript 3.0 Flash 3D Graphics Engine > > HTTP://AWAY3D.COM
