StageUtil.as - Simple AS3 Class to Align Objects
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.
This file has been downloaded 646 times.












