Archive for July, 2006

AS3 EventManager

Wednesday, July 12th, 2006

In an effort to develop one single, centralized event handling system for all of my applications I have developed a new EventManager for ActionScript 3.0 based on the concepts of previous AS2 EventManagers such as the ones from Jeff Tapper as well as the Cairngorm EventManagement system.

The EventManager is a simple class that you can use to centralize listeners and broadcast events from anywhere in an application. It is an absolutely essential part of all of my ActionScript 3.0 Applications.
Click here to download the AS3 EventManager

ActionScript 3.0 / Flex 2.0 Local Debugger

Monday, July 3rd, 2006

Today I re-built my ActionScript Debugger from the ground up for ActionScript 3.0 / Flex 2.0. If you are not familiar with the ActionScript debugger it is a simple Local Debugger which recursively traces out various complex types such as Objects, Arrays etc to a seperate .swf file.

I will continue to build on the current functionality to take advantage of the various new type-checking features in ActionScript 3.0.

To see an example of the Debugger in Action click here

Below are links to the Debugger’s ActionScript 3.0 Classes:

e.as - Static class which sits at the root of the application
TraceObject - Static Class which recursively traverses an Object
LocaDebuggerRecieverHandler.as - Debugger Console

ActionScript 3.0 / Flex 2.0 / E4X RSS 1.0 Blog Reader

Sunday, July 2nd, 2006
One of the best new implemented ECMA features in ActionScript 3.0 is E4X - a native XML dataType in ActionScript 3.0. If you are traditionally used to traversing an xml document in actionScript 2.0 I am sure that you are more than familiar with recursive for-loops and endless firstChild.childNodes[i]… type syntax. E4X is a much better (not to mention standard) approach to parsing XML. You can now simply target a node and use for-each loops to loop thru child nodes.
I built a simple aggregator for my Blog in Flex 2.0 using E4X and it was a piece of cake.
AS3E4XRSSBlogReader

ActionScript 3.0 Utopia

Sunday, July 2nd, 2006

I have been building sample applicatons in Flex 2.0 / ActionScript 3.0 for the past few months in preparation for some big project developments that are coming up.

I have to say that ActionScript 3.0 has taken everything to a new level. If you have been designing Object Oriented systems in Flex 1.5 / ActionScript 2.0 as I have you will certainly notice a ton of improvements right away. At my job I work closely with our Lead Java developers on a daily basis and I have been waiting for the day when ActionScript would mature into a robust and powerful language such as Java and C#. Well let’s just say that wonderful day has finally come!

Salute’ Adobe!