Managing Menu Buttons in Actionscript 3

June 18, 2009

One very common task in creating Flash applications is managing menu buttons. It tends to be a very repetitive business. The best approach would be to create a component with a label that you can change at runtime. But in order to create such a component first you need to understand how Flash UI Components work, and that’s not easy. But there are other, simpler approaches that you can use.
Read the rest of this entry »


Gaia Flash Framework

May 15, 2009

Flash Frameworks are a big thing nowadays. They make the job of creating a Flash-based web site easier, help you organize your code and files. There are many of these in development out there, but Gaia Flash Framework is one that stands out in the crowd.

Apart from it’s intuitive work-flow and beying open-source, what makes it so great is that it integrates into Flash CS3/CS4, providing an user interface that makes the creation of web sites as easy as pushing a few buttons.

Other features like deep-site-linking, timeline or actionscript based transitions, actionscript 2 and 3 support and scafolding complete the package.

Check out the demo video at http://www.gaiaflashframework.com/.


Layout Manager

February 2, 2009

Ever since Flex came out people have been after similar functionality for Flash. There aren’t many options out there, but a few worth mentioning are http://www.soundstep.com/blog/downloads/baseui/ and http://www.nbilyk.com/flash-layout-manager. After studying these (great) diferent approaches, I decided to give it a try and build my own version, similarities not a coincidence.

LayoutManager and LayoutElement

LayoutElement extends a DisplayObject’s size and positioning properties. Both size and position can be specified in pixels or percentage of a container. LayoutManager manages LayoutElements and updates them as necessary.

LayoutManager Demo

LayoutContainer

LayoutContainer extends Flash’s UIComponent and works much like ScrollPane, except it’s content can be added/removed directly just like any other DisplayObjectContainer.

Layout Containers

Layouts Containers, such as Canvas, HBox and VBox, extends from the LayoutContainer class and add LayoutManager and LayoutElement functionality.

HBox Demo