Using eventDispatcher (it rocks!)

In many respects, I haven’t been overly impressed with the F04 (Flash MX 2004) update, though I’m reserving my final opinion for a month or so, until I’ve really dug deeply into it. Tonight though, chatting with Phil Chung, I ran into something I’m really impressed by: eventDispatcher

I thought I’d should provide a run-down of it here, as it appears well thought out, and very flexible (though I’ll probably write an extension to it to fulfill my short wishlist of missing features). Whoever thought this one up at Macromedia should be proud.

Read on…
Continue reading →

More OOP4AS2 translations

Thanks to some wonderful multi-lingual Flashers, the Object Oriented Programming for Actionscript 2.0 series of posts is being translated into a plethora of languages. Currently, translations have begun in:

Korean

French

Latvian

Chinese

Spanish

Dutch

German

Brazillian Portuguese

Links should also be available to the individual translated articles in the comments section for each entry (I have asked each translator to provide these). If you find these translations valuable, please send the translators some encouragement in their comments, or by email. Thanks guys!

If you’re interested in doing a translation, just fire me an email with the “contact” button at the top of the page.

EDIT: added French, 2003/09/21

EDIT: added German, 2003/09/22

EDIT: added Brazillian Portuguese, 2003/09/23

OOP4AS2#5: Inheritance (extends and super)

Entry #5 in this series will deal with implementing class inheritance with the “extends” and “super” keywords. In this post, I will focus on the syntactic details of inheritance in ActionScript 2.0, and will likely post my opinions and thoughts how to apply that syntax separately.

Inheritance is a very important concept in Object Oriented Programming, as it allows for the development of highly modular and extensible code, which in turn reduces development time. It also allows developers to extend the functionality of pre-existing classes, without touching the original code.

Once again, this post builds on previous posts, so at the very least you should grab the code from entry 4 before proceeding. Also, if you’re looking for a great introduction to all the new goodies in F04 (Flash MX 2004), be sure to pick up the forthcoming “FlashMX 2004 Demystified” from Macromedia Press.

Read on…
Continue reading →

OOP4AS2#4: Dynamic classes

Installment 4 of my series on Object Oriented Programming with ActionScript 2.0 will cover dynamic classes – a relatively simple topic, but one worth being familiar with so as to avoid frustration.

Again, if you haven’t read the previous posts, you should because they all build on one another. Also, if you want all the nitty gritty details, you’ll have to buy “Flash MX 2004 Demystified”, which is forthcoming from Macromedia Press.

By default, the actionscript 2 compiler in FlashMX 2004 will not allow you to add new properties or methods to instances of a class. Attempting to do so will result in a compiler error.

Read on…
Continue reading →