Using the Event Manager

On a number of recent projects, I’ve been unhappy with the tight coupling I’ve needed between components in an application, to get the effective communications I needed. I set out in search of a way for any one component to subscribe to the events of any other component, without the Continue Reading

DateAdd for ActionScript

following yesterday’s theme, in which I built a dateDiff method for AS2, today I extended the class with a static method to provide dateAdd() functionality.  Again, its modeled on the behavior of the CFML dateAdd, so it takes as arguments datePart:String, date:Date, numToAdd:Number.  The method returns a new date object.  Continue Reading

DateDiff for ActionScript

One of the tools I often find myself needing when developing applications in ActionScript is a utility for determining the difference between 2 dates.  Following the structure of ColdFusion’s DateDiff function, I came up with this: class DateFunction { /** dateDiff(datePart:String, date1:Date, date2:Date):Number<BR> returns the difference between 2 dates<BR> valid dateParts:<BR> s: Seconds<BR> n: Minutes<BR> h: Hours<BR> d: Continue Reading

Broadcasting custom events

Did you know you are not limited to working with the events built into components, but you can broadcast your own events as you need to within Flash and Flex? Its actually really easy, and gives great ability to loosely couple the application.  If you are working in a subclass Continue Reading

LocalConnection for debugging

Did you know you can communicate between two different flash applications running at the same time?  This is possible using the LocalConnection Object.  I’ll often use this for building app debuggers, so i can see the debug outside the main application.  Here is a simple example, where various events in Continue Reading

Canvas Scroll Policy Madness

While building a custom control for a client, I noticed an odd behavior in the ScrollPolicy for the various containers (I was specifically working with Canvas when i discovered this).  When the vScrollPolicy of a container is set to off, this not only removes the scrollbars, but also removes the Continue Reading

Revised PhotoViewer

I just installed my Non-Commercial/Non-Institutional version of Flex today, and began to use the photoviewer sample app for a slideshow of my daughter Kaliope.  This is a really nice app, but there were a few features i wanted to add, so I modified it a bit.  This new version now Continue Reading

Powered By Detroit

I’ve just been invited to speak at the New Flash and ColdFusion Conference, Powered By Detroit.  This conference is aimed squarely at folks aiming to build Rich Internet Apps with ColdFusion and Flash.  More Information available at their website.  I believe I’ll be talking specically about Customizing Flex Components with Continue Reading