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!
The first RIA i am planning to finish anytime soon, is giving me some headaches over communicating with my backend through flash remoting. The problem is that it’s hard for me as an actionscript 1.0 coder to fully understand and implement actionscript 2.0 classes.
The problem with flash remoting in use is, that you cannot assume you have every request for data instantly at your disposal. You need to create certain listeners which listen to your remoting classes, and act accordingly. Whilst i’m trying to make my very first RIA as strict coded as possible, i ran in some problems when communicating with my as 2.0 classes. So i figure i’ll let that problem as it is and go on with some messier code, which does work. More on this problem when the project is done.
In the meanwhile, i am also busy developing a new template for the site. This one is not entirely my taste. I’m trying to create a site, which will benefit the most of the way a site is supposed to be build. You’ll see when it’s done ;)
been kind of quiet here last couple of days, no major changes in the site ;). Reason for this is the fact that i’m trying to finish a first RIA. It should become my guestbook for this site.
As soon as i am ready with it, i’ll try to get the code in such a shape, that i can make it available for you to download.
The web is full of resources for flash movies, but i have yet to find one where you can see how other people tackle their setup of a large flash project. That’s why i hope to discuss the way i use for my private proejcts with others, so we can all learn better which we suits us best.
You’ll probably see the myFZguestbook app running in the top of the site in the ’sandbox’ part. it’s still a work in progress so when the flash is done and the remoting part is still working, you can test it out :)