Return to Snippet

Revision: 13954
at May 14, 2009 10:00 by sidneydekoning


Initial Code
// This can only be done then the registration point is top left and objects don't have graphics in its negative space

// horizontal alignment
b.y = a.y + (a.height - b.height) * 0.5;

// vertical alignment
b.x = a.x + (a.width - b.width) * 0.5;

Initial URL


Initial Description


Initial Title
Centering items to one another

Initial Tags


Initial Language
ActionScript 3