Re: [Flashcoders] Dynamic text align vertically

2005-11-19 Thread Andreas Rønning
I used this method on a larger project a year ago, where text was to be loaded into cartoony speech bubbles, kind of a dynamic combic book thing so the client could alter the script post deployment if they wanted to. For some reason, textHeight won't read correctly in some instances, though text

RE: [Flashcoders] Dynamic text align vertically

2005-11-19 Thread Paul Steven
PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Karthik Sent: 19 November 2005 14:21 To: Flashcoders mailing list Subject: Re: [Flashcoders] Dynamic text align vertically 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 verti

Re: [Flashcoders] Dynamic text align vertically

2005-11-19 Thread Karthik
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

RE: [Flashcoders] Dynamic text align vertically

2005-11-19 Thread Paul Steven
Karthik, thanks for the reply Can you elaborate on how to do this please Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Karthik Sent: 19 November 2005 14:09 To: Flashcoders mailing list Subject: Re: [Flashcoders] Dynamic text align vertically

Re: [Flashcoders] Dynamic text align vertically

2005-11-19 Thread Karthik
Best bet is to align the entire text field vertically based on its height. -K On 19/11/05, Paul Steven <[EMAIL PROTECTED]> wrote: > I have some random jokes and answers appearing in a "splat" graphic on > screen. The jokes are read in from an XML file. > > I have set up a 4 line multiline dynamic

[Flashcoders] Dynamic text align vertically

2005-11-19 Thread Paul Steven
I have some random jokes and answers appearing in a "splat" graphic on screen. The jokes are read in from an XML file. I have set up a 4 line multiline dynamic text area in the splat movie clip that displays the question and answer using variables e.g _parent.Joke_Answer This text area is "align