I don't think there's a way to "draw" text without using a component to do
it.  The lowest level you are going to get is UITextField (which is just and
extension of TextField that implements IUIComponent so it shouldn't give you
that exception). This is what every mx component renders text.

- Dan

On 1/19/07, superstella_uk <[EMAIL PROTECTED]> wrote:

  Im still having enormous problems just trying to draw some text on a
Graphics object. Someone suggested to use TextField, I realy dont
understand this object.

It appears to be a non visual object, yet has fields like autosize.
Any attempt to create one and add it to my flex display results in an
exception because its not a UIComponent.

How am I supposed to use this object? The examples in the docs show it
being created and then added to the display using addChild, but this
creates the same exception.

The control Im creating needs to draw lots of text. I really want to
avoid creating labels or other components just to display text, isnt
there a way to just paint text on a graphics object at runtime,
without adding to the display hierarchy ?

Thanks

Reply via email to