THE PASZ.COM BLOG

Saturday, July 16, 2005

New Flash 8 Classes

A lot of people have already been experimenting with some of the new features in Flash 8, like their programmable filters. Using the excellent documentation generator Natural Docs, I've created some bare-bones documentation for the new classes that were included in the 1.09 of MTASC.

Click here for the Flash 8 Class Documentation.

A Practical Approach for Implementing Inheritance in JavaScript

Just getting the blog going here today with a few posts. Here's an article I wrote a while back about inheritance in JavaScript. After doing a lot of reading on this topic, I tried to boil things down in a way that's practical and useful. But certainly my ideas could use some feedback and refinement.

Here are the basic strategies I recommend when building Classes in JavaScript:
1. Keep your class hierarchies shallow
2. Don't rely on calling superclass constructors or methods. Instead just give them different names.
3. Use polymorphism to your advantage, but don't overuse it.
4. Keep code organized and well-commented to help explain how your classes are arranged.

more...