Some favorite site feeds aggregated locally: iPhone Development RSS   Adobe Labs RSS   Macrumors RSS

Monday, May 19, 2008

Odd thing about custom events in AS3

Monday, May 19, 2008   

Even though I don't need to rely on custom events in AS3, I am finding myself using them almost exclusively at the moment for my own classes. With the built-in classes of course I am still using their methods, but I am sending a lot of parameters with my own classes, and the ability to send them along for the ride while using custom events is pretty exhilarating. 

I could use one base custom event and add all kinds of event types to it, but I am breaking them up a bit more just for legibility. One could probably do it all, but then I'd end up with a custom event class that might possibly have tons of types in it I might never use in context. So breaking them down into their own custom classes seems like the responsible thing to do. 

Monday morning, using custom events. Much fun. 

I didn't take to AS3 right off as I had to look up a lot of packages I needed to import all the time, but after more than a year of doing so, AS3 as a whole just seems SO much better. No more hacks, no more blind loops through "display objects (AS2)", a compiler that I love when it warns and errors at me, faster code execution, forcing me to architect things in a much more reliable manner, much more overall control, tons of handy events and methods, etc. 

I know that I'm not saying much more than anyone else already experiences every single day, and have been for a long time. It's Monday, I'm feeling really good about AS3 at the moment, and I just wanted to express myself about it for a moment. 

Happy times.
 
 Return to the main page
Comments:

There are currently 3 Comments:

Blogger Campbell said...
“thats a pretty happy outlook to have on a Monday morning”
 
Blogger Stray said...
May 25, 2008 11:03 AM
“I must confess, custom events in AS3 make me smile too! It's the good feeling I get when I work a tiny bit harder to get something really right - like cleaning the fridge before you fill it up with your week's shopping ...

I also get a buzz out of creating classes purely for the purpose of compile time error checking - those equivalents of the text align classes - stuff with no constructor and a bunch of static properties so that you know you're using something valid for a parameter ... lovely ... or is that just me?

Sx”
 
Blogger e.dolecki said...
May 25, 2008 2:28 PM
“Not just you - its lovely.”
 
 Leave a comment