Blake, 

Use the paragraph tag's align attribute: 

htmlText='<p align="center"><font face="KnockoutHTF51Middleweight" size="16"
color="#ffffff">SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.</font></p>';


-Keith 
http://home.mn.rr.com/keithreinfeld 
 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Perdue,
Blake
Sent: Tuesday, October 10, 2006 10:26 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Center align multiline textfield?

I'm trying to get a multiline textfield to be center aligned. Here's the
code:

this.createTextField('subhead',20,1,435,434,200);

with (this.subhead) {

            html=true;

            embedFonts=true;

            selectable=false;

            wordWrap=true;

            multiline=true;

            autosize='center';

            htmlText='<font face="KnockoutHTF51Middleweight" size="16"
color="#ffffff">SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.</font>';

}

 

The autosize seems to only work for single line textfields, not
multiline. Anyone know how to accomplish this? Thanks.

 

Blake Perdue | 212.522.1292 | AIM: blakepCNN

 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to