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.
Comments:
There are currently 3 Comments:
-
Campbell said...“thats a pretty happy outlook to have on a Monday morning”


