You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Which we would call like this:
ald.anchorBottomTo(someGraphic, 5);
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: