/ Published in: ActionScript 3
- // 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;
You need to login to post a comment.