Why not extending ObjectContainer3D instead of Sprite?
2009/1/9 Ben Gannaway <[email protected]>: > > Apologies if this is an obvious one... > > Say I have a 3d menu containing multiple planes, listeners etc. I'll want a > class to control that. So I create the class, extending Sprite and addChild > all the various elements. Now, in my document class, I can't addChild my > menu to the scene because its a sprite. If I make my menu class extend > object3d, I can't addChild it's constituent parts from within the class. > What is the proper way to maintain class structure for a scene with lots of > different visual elements. Should I create a new scene3d for every element > that is controlled by it's own class? > > Many thanks, > > Ben >
