What you do here is not loading but instantiating of a model.Loading is when you load it from the external source (outside Flash sandbox).
Assign the ENTER_FRAME listener for your game loop after you finished instantiating all the stuff and you are done On Mon, May 30, 2011 at 1: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); -- Michael Ivanov ,Programmer Neurotech Solutions Ltd. Flex|Air |3D|Unity| www.neurotechresearch.com http://blog.alladvanced.net Tel:054-4962254 [email protected] [email protected]
