Right now, when using an anchor layout, we can anchor one object to another like this:
var ald:AnchorLayoutData = new AnchorLayoutData();
ald.bottom = 5;
ald.bottomAnchorDisplayObject = someGraphic;
This is a bit clumsy, particularly because the property names (e.g. bottomAnchorDisplayObject) are so long.
It would be great to have a convenience method that combined the distance and display object properties into a single function with a shorter name, something like:
public function anchorBottomTo(target:DisplayObject, distance:Number):void
Right now, when using an anchor layout, we can anchor one object to another like this:
This is a bit clumsy, particularly because the property names (e.g.
bottomAnchorDisplayObject
) are so long.It would be great to have a convenience method that combined the distance and display object properties into a single function with a shorter name, something like:
Which we would call like this: