Hi Manish,

> First of all, getTextField returns an IUITextField, and there's no
> method called setTextFormat on IUITextField. So you're casting the
> object to its actual type, UITextField, and then calling the
> setTextFormat method on it. That's not supported.

   Actually, when applying bold style to the text I am following the
same approach from standard component <mx:RichTextEditor>, inside
RichTextEditor.as, line 449 some unknown to me  Flex SDK engineer is
calling setTextFormat method like that
textArea.getTextField().setTextFormat  exactly the same way I do  ;)

> If you want to get around that, it should be okay to pass false as the
> second argument to loadStyleDeclarations as long as your external
> stylesheet really does not affect any existing objects on the screen.

   Thanks, Manish, from now on I will load all external pre-compiled
fonts into my Flex applications with "update" parameter set to FALSE
to avoid cascading immediate style changes through DisplayObjectList
hierarchy.


--
Med venlig hilsen / Best regards
Andriy Panas
[email protected]

Reply via email to