What is this Cube2 class, I can't find it in help references for away3d, away3dlite or broomstick.
http://away3d.googlecode.com/svn/trunk/fp10/Examples/Away3DLite/as/src/Basic_LoadModel.as This example is amazingly huge and for 3dlite only probably, but, if you go to initObjects(), you'll find the important stuff: loader = new Loader3D(); loader.addEventListener(Loader3DEvent.LOAD_SUCCESS, onSuccess); loader.loadGeometry("assets/f360.3ds", max3ds); //max3d is object of Max3DS class but it will work for many other model types you attempt to load (it's not the file, as you might notice, it's the object that desribes the data inside f360.3ds file...) I don't know what cube2 is, but there is a good change you don't need this, as explained by Michael. In case you get an error or two, post them and we'll see. On May 30, 12:46 pm, andrew barry <[email protected]> wrote: > How do I detect if my model has been completely loaded ? > I have game loop with collision detection etc and if the models are > not all loaded then I am entering a game loop beofre all models have > been loaded? > > The below is how i load a model but it doesnt tell me much when it is > loaded. > > model5 = new Cube2( 1); > model5.material = modelMaterial2; > model5.z =100; > model5.y=50; > model5.x=0; > view.scene.addChild(model5);
