On 8/14/07, Hans Wichman <[EMAIL PROTECTED]> wrote: > Just on a side note, its not just -ow-what-shall-we-use-today- its a more > fundamental conceptual issue as well, such as are you dealing with a is-a > relationship or has-a or is-part-of-a etc. > > I don't know if better class hierarchies change that, but maybe they > could...
Try working in Flex for a while and get back to me.... One of the big problems with extending MovieClip in AS2 is that things like _x, _y, etc. are basically just public variables. Thus composition is often a good strategy simply because there's no way to override these properties otherwise. But with the AS3 classes, you can override anything: x, y, width, height, rotation, etc. (That's exactly how the MX components work.) Another advantage is that there are more classes to extend. In AS2, it has to be a MovieClip, even if you just want to draw a box. But AS3 has Shape, Sprite, MovieClip, etc. You can extend the class that has the functionality you need and no more. (Well, not much more....) Of course there are still cases where composition (as in a non-display object wrapping a display object) is better, but I find them to be much fewer in AS3. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

