Flash CS4 Vertical Align Bottom

How do you vertically align text in a dynamic field to the bottom?
navolutionsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AreDubyaCommented:
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

0
AreDubyaCommented:
navolutions,

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

AreDubya
0
navolutionsAuthor Commented:
tried that but my text just disappeared
0
AreDubyaCommented:
navolutions,

Where is the registration point for your point? When you use the code above, you are creating a virtual point, then aligning your textField to it. So, if you want to go bottom, after your text is in align the textfield to be above the reg point. Then, set the "point" var to be the point in your application you want the text's bottom at.

AreDubya
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.