When developing in Flash Actionscript 2.0, you are touching the realms of Object Orientated Programming. The beauty of e.g. an IDE like Flash is, that you can let different classes communicate with each other real-time through a so called ‘eventmodel’.

Jesse Warden wrote a nice article on his blog about the different methods of how you can let different classes listen and shout to eachother.

The place where i ran into the use of events was with myFirst RIA, the fzShoutbox. When someone adds a shout, the classes i made are being filled with the entered data.

After that, i need to submit the data through my FlashRemoting interface to the database. But the problem was, “How do I know when the data is entered?”. I mean, we need to let our users know that they just saved their data one way or the other, so we need to have a way for the classes to act on certain events while using the application. That’s where these event models come in. Take a look and if you can think of any other usefull things for events, post a comment!