Oct 08 2008

AS3 | Data Structures | News

Coraldata merged into BirdEye

Thanks to the interest of Jason Bellone at the United Nations, Centre for Advanced Visual Analytics, I am happy to announce that my data structure library, coraldata, has a new home in the BirdEye Information Visualization and Visual Analytics Library. It may take a little time to get all the classes up there, but it [...]

Read the rest of this entry...
Sep 04 2008

AS2 | Programming

Recursively convert XML into multidimensional array (AS2)

This is a code snippet I wrote awhile back that recursively works through an XML file and converts it from XML into a multidimensional array. This was from the days before E4X was a part of ActionScript, and as such this is an ActionScript 2.0 example, so it may not be as useful as it [...]

Read the rest of this entry...
Aug 22 2008

Flex

After creationComplete a Flex component’s stage property is… what? null?

When creating a custom Flex component, it may be desirable to access the stage when initializing the component. However, as stated in the documentation, the stage property of a DisplayObject only becomes accessible (that is, does not appear as null) when the display object has been added to the display list. It would seem intuitive [...]

Read the rest of this entry...
Aug 20 2008

Flex | News

2008 Spring <br/> Conference video player online

I wrapped the great open source Flex FX Video Player in a Cairngorm web app and voila… a video player for the Spring <br/> conference videos.

Read the rest of this entry...
Jun 30 2008

AS3 | Flex | Programming

Scaling a DisplayObject to fit to a container’s dimensions

I’ve often run into the problem of proportionally scaling an image (or other DisplayObject) to the dimensions of its parent container. I always end up having to scavenge around in my code bank for the line of code to do this—which really is a simple bit of code—but I prefer to copy-and-paste it than rewrite [...]

Read the rest of this entry...
Jun 04 2008

AS3 | Data Structures | Programming

Spring <br /> 2008 Presentation

This past Tuesday I spoke about Data Structures at the 2008 Spring <br /> Conference in Baker Center, at Ohio University in Athens, Ohio. Since I was involved in organizing the conference this year, it was a pleasure to have the big day finally arrive. I enjoyed some technical wizardry by Samuel Agesilas Pastel, a [...]

Read the rest of this entry...
May 24 2008

AS3 | Programming

Setting private property values of a cloned ActionScript 3 object

Sometimes when cloning an object it is desirable to set a private or read-only property on the clone. Since these properties aren’t writable from outside the class itself, how can their values be changed? Drawing from the ideas of Grant Skinner’s post on Singletons the same internal class technique can be used to set properties [...]

Read the rest of this entry...
May 14 2008

AS3 | Flex

Transformational Canvas v1.0

I wanted to create a Flex Canvas-based component that acted like a camera looking down on a tabletop containing objects. Any item added to the canvas would automatically be able to be dragged as a group and individually, while the whole view could be zoomed and rotated. Here is the result:   This movie requires Flash [...]

Read the rest of this entry...
May 07 2008

AS3 | Flex | Programming

Encapsulating interactive behavior in Flex applications for better code readability

Consider for a moment dragging an element within an application. The steps required for this operation are as follows: Behavior Description Event to listen for START DRAGGING… When the mouse button is pressed down over the element. MouseEvent.MOUSE_DOWN DRAG… While the mouse is moving and the mouse button is pressed down over the element. MouseEvent.MOUSE_MOVE [...]

Read the rest of this entry...