I'm just typing this off the cuff:

//if you have a multiline textfield named test_txt on the stage
//and want to align it vertically to the center of the stage
test_txt.autoSize = true;
//Always set the text via AS rather than use the variable field
test_txt.text = "abcd \n efgh \n ijkl";
test_txt._y = (Stage.height - test_txt._height)/2;
test_txt._x = (Stage.width  - test_txt._width)/2;

//Stage is a built in class..

Hope that helps :)
-K

On 19/11/05, Paul Steven <[EMAIL PROTECTED]> wrote:
> Karthik, thanks for the reply
>
> Can you elaborate on how to do this please
>
> Thanks
>
> Paul
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to