View Full Version : align htmlText?
rigormortis
02-17-2004, 01:34 PM
hi all
is it possible to align html text? if it is so could you tell me how?
thanks...
Stimpson
02-19-2004, 03:38 AM
Hey and welcome rigormortis,
Sure, you can either do it via the textfield itself, zetting the text alignment, the html text will change accordingly. Or with an stylesheet in which you define 'text-align', and which you tie to the textfield :).
rigormortis
02-19-2004, 11:41 AM
thanks for ur reply but is it possible in flash mx .. i ve tried but couldnt make it.
Stimpson
02-19-2004, 02:41 PM
Well, changing the text alignment on the textfield is for sure. You can either do that in the property inspector of a textfield, or with an seperate textFormat object you tie to the textfield. That was an option I forgot to mention btw, like this:
format = new TextFormat();
.align= "left";
texifield.setTextFormat(format );
When you aply htmlText to the textfield (html enabled), it will be aligned accordingly :).
rigormortis
02-19-2004, 02:47 PM
yes, i have found the answer in the past threads too
thanks for ur help
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.