Peter Elst at MultiMania 07
Peter is doing a talk on OO in AS3.
Key points that will be discussed are:
- DisplayList API
- DOM3 Event Model
- E4X (ECMAScript for XML)
…and some others I wasn’t fast enough to copy from the screen
E4X must be one of the greatest additions to the language.
The ease of iterating through an XML document is a snap in AS3 in comparison to AS2!
This session was a quick drill-down of what AS3 is and how you’d best use it.
Peter briefly introduced some Design Patterns (Observer, Singleton, MVC, Decorator) and how you apply them in AS3.
For instance he demo’ed the implementation of the Singleton Pattern in AS3, which needs a workaround since AS3 doesn’t allow for private constructors. This clever workaround was conceived by the Big Mr. Grant Skinner.
Not many new things learned here I must say, but for those of you just getting to know your way around OOP and/or AS3, this is a nice and quick how-to to get you started.
Be sure to check out Peter’s blog from time to time, I’m pretty sure he’ll be posting his presentation there one of these days.