Re: [flexcoders] Re: New to flex, wonder why one works and the other doesn't...

2008-06-02 Thread Joseph Balderson
In other words, UIComponents /can/ natively contain other UIComponents, only the child UIComponent will by default have a 0 width and height. Which it means it won't show up on the stage. Which means, by default, you cannot get a native (non-extended) UIComponent to show up when you add it to

[flexcoders] Re: New to flex, wonder why one works and the other doesn't...

2008-06-02 Thread Michael Labriola
Close, but no. In Flex, parents are responsible for sizing their children. Flex Containers (which are just UIComponents with more code) do size their children, but you can also create UIComponents that know how to size their children. Neither a container, nor a component that implements a

[flexcoders] Re: New to flex, wonder why one works and the other doesn't...

2008-06-02 Thread aarhac
Excellent, thanks very much for the responses. As an aside, I did solve the problem by using the bitmap classes instead as they seemed to have more consistent behavior. (And I couldn't find a straightforward way to copy the image data with the Image class) Michael and Joseph, that makes perfect

[flexcoders] Re: New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Michael Labriola
Guys, sorry, but that's not quite right. UIComponents can contain other UIComponents without being a container. It is a common use case. Take a look at the simple example Adobe includes with their docs: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=1742.html