--- In [email protected], "Jason" <[EMAIL PROTECTED]> wrote:
>
> OK, weird, so why then do children of the UIComponent I added, like 
> text and sprites, (with graphics drawn in them) appear, but not 
> Image?  Are they rendered in a completely different way?

First, you're extending Sprite, so they're NOT children of _the_ 
UIComponent, since there is not a UIComponent involved.  Second, when 
you draw with the graphics methods, Flex knows how big to make it 
because you gave it the coordinates.

I think what everyone has been trying to tell you is that if you want 
to see the Image inside a UIComponent, you need to do at least two 
things:

First, actually make sure the parent IS a UIComponent.

Second, you need to explicitly give it a size.  I think the 
conventional method for doing this is to call setActualSize() on the 
child image.  I think the conventional place to do this is 
updateDisplayList(), though I'm no whiz kid and I could be wrong.


HTH;

Amy

Reply via email to