So, first I need to create the var and load the file...

var tube:Max3DS=new Max3DS("tube.3ds");

then i need a function to add the child to the scene once the load of
the model is complete, but where and when and how do i call that
function


function onLoadedComplete(e:Event)
        var myObject3DS:Object3D = e.loader.handle
        view.scene.addChild(myObject3DS);





On Apr 11, 4:02 am, Fabrice3D <[email protected]> wrote:
> add a onLoadedComplete event to the parser
> then when its loaded, addChild the handle, the object3d.
>
> function onLoadedComplete(e:Event)
>         var myObject3DS:Object3D = e.loader.handle
>         view.scene.addChild(myObject3DS);
>
> Its also a good idea to listen to errors
> loader.addOnError(onLoadedError);
>
> as the size/scale of the display, all depends on camera 
> distance/settings/lens from either your exporter or away.
>
> Fabrice
>

Reply via email to