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/2643dd1556f2e262/a84b6d1609e6f279?lnk=gst&q=awd+loader#a84b6d1609e6f279
>
> 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

Reply via email to