Not to mention, a class adding itself to its parent ?? eeeeeeewwwww..
----- Original Message -----
From: "Steven Sacks" <flash...@stevensacks.net>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Monday, August 17, 2009 10:53 PM
Subject: Re: [Flashcoders] How to add a DisplayObject into a container
withoutusing addChild() method.
I don't understand why you would not want to write a single line of code in the
class where it would provide the most clarity, and instead write MORE code in
another class obscuring the behavior that is going on. In other words, you're
writing more code to write the same code. You're going to write addChild either
way, why make it more complicated than it needs to be?
Always follow the KISS principle.
BTW, Ekameleon, you should use
if (target)
Instead of
if (target != null)
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders