Link to home
Start Free TrialLog in
Avatar of navolutions
navolutionsFlag for United States of America

asked on

Flash CS4 Vertical Align Bottom

How do you vertically align text in a dynamic field to the bottom?
Avatar of AreDubya
AreDubya
Flag of United States of America image

navolutions,

Technically, you can't because the align needs to be a value of  flash.text.TextFormatAlign, and those are center, justify, left and right. Maybe you could solve the problem by relocating the text field? Or resizing, with an auto sizer:

var pt:Point = new Point(100, 400);

pageText.autoSize = TextFieldAutoSize.LEFT; //can be .CENTER or .RIGHT also
pageText.x = pt.x;
pageText.y = pt.y - pageText.height; ///Sets the bottom of the textfield to the point you specify

AreDubya

navolutions,

Did this answer your question? Could you close this question please?

AreDubya
Avatar of navolutions

ASKER

tried that but my text just disappeared
ASKER CERTIFIED SOLUTION
Avatar of AreDubya
AreDubya
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial