[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 514
  • Last Modified:

Flash CS4 Vertical Align Bottom

How do you vertically align text in a dynamic field to the bottom?
0
navolutions
Asked:
navolutions
  • 3
1 Solution
 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now