On 8/13/07, Andy Herrman <[EMAIL PROTECTED]> wrote: > > Specifically, if I'm wrapping MovieClip I'm generally creating > something with a lot of special behavior, which sometimes causes > restrictions on things like position and size. If I extend MovieClip > then all the built in MovieClip functions and properties are > user-visible, so there's really nothing stopping someone from just > doing myClass._width, etc.
This is definitely a valid argument in AS2. In AS3, however, the problem goes away. You can override the getter and/or setter of any property: x, y, width, height, etc. (In fact, this is exactly how Flex components work.) And if you don't want something to ever be overridden, you just use the "final" keyword. -- Mike Keesey _______________________________________________ Flashcoders@chattyfig.figleaf.com 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