Subscribe to Feeds
25 Jun

StageUtil.as - Simple AS3 Class to Align Objects

Flash , Goodies

As you all know that we have been working on the next release of the gallery, but is just eating up a lot of time in development as we are trying to use AS3 and provide advanced skinning options.

During this time we had to create a few helper classes to support the gallery’s requirement, and I just thought we could share the class out to the readers. The StageUtis class provides static methods to align objects similar to the Align panel in flash. Below is a simple code to align MC1 to the Left top corner of MC2

StageUtils.align(MC1, MC2, StageAlign.TOP_LEFT);

Please use the flash to view the different available options of aligning MC1 and MC2 using the StageUtils class.

Download

This file has been downloaded 950 times.

End of Article

9 Responses to “StageUtil.as - Simple AS3 Class to Align Objects”

Trackback / Pingbacks

Leave a comment

Small Life

Naturaaa

Droplet

Chameleon

Snail

South Lake Tahoe

Hill View

© 2007 - 2008 Dezinerfolio. All Rights Reserved.
Powered by Wordpress & Hosted at Zone.net