Merrill, Jason wrote:
No - I mean just broadcasting events instead of coupling code across timelines. Even if you're not using design patterns or even coding outside the IDE, you don't need to use root.
For events you still need an object to dispatch them on. And it really is just used as window dressing to make people feel good about that same old code being "better". This is not the only use, but it is one thing that people keep doing. Events are worse than just calling the right method to begin with. Events are too loosely coupled if you ask me. If I get the event source wrong, there is no error raised and so on. Event listeners also can not return any value.
Does this mean that I recommend people to stay away from events? No. I only want people to think before using them. Good things can be abused too.
Or we could just cut out all this theorist cruff and focus on the issue at hand. How would you replace the root property?
I say that there is a limit to how overly complicated you want to make your program. Most people are not hired to design virtual machines that "other people" program for, they are hired to actually do the boring work. My point here is that in reality, you can't be perfect or an elitist. Think about your goal before you overdo stuff. It is ok to not do stuff the absolutely cleanest possible way, it's total disasters that you should avoid.
_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

