How do you handle onLoad's famous scope? ... It is not magic or advanced.
If a pattern was shown to a new programmer without giving it a fancy name,
they would just accept it as the best way to do the task and would never
give it moment's thought.
Right. Delegate - ie Proxy. I agree. I wasn't saying patterns shouldn't be
taught, or used - I doubt you could teach a Flash class these days without
teaching Observer, but you might not ever call it that. In fact, I wonder
who does call it that in a class? Actually, the more I think about it, I
think for students it might be best not to call these patterns and just
teach them. Then, once they know how to use them, tell them what they are.
It's a bit like teaching encapsulation I think - if you just show your
students how to write classes, and they see how classes work for organizing
code, they will likely just use them.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
_______________________________________________
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