To automatically align elements with one another, use snapping. Flash provides three ways for you to align objects on the Stage:
Object snapping snaps objects directly to other objects along their edges.
Pixel snapping snaps objects directly to individual pixels or lines of pixels on the Stage.
Snap alignment snaps objects to a specified snap tolerance, a preset boundary between objects and other objects or between objects and the edge of the Stage.