Clemos is right, there are two methods: setTextFormat() and
setNewTextFormat().

using setTextFormat() you can change or specify the formatting of the
entire text of the textfield's actual content (if you pass a single
TextFormat object as parameter), or only a smaller part
of it (one character or sequence of characters, see the documentation
for exact the syntax). So setTextFormat() has effect only on texts
already placed into the textfield and doesn't set the formatting of
texts inserted or appended later.

On the other hand, setNewTextFormat() sets the formatting of text
which will be inserted into the textfield later, and has no effect
on the actual content.

If you take the things above into condsideration, probably you will
find the text formatting model more flexible and easier to use :)

 Attila


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to