I just discovered that we could include <mx:UIComponent> in any mxml page. I had no idea :p, but, this could certainly be useful. Internally, someone asked how they could add something like a Sprite or a Video object to a Flex container (rather than using the VideoDisplay provided by Flex). Here were some basic guidelines from Alex Harui that I thought might come in handy for some of you:
1. Navigator children must be Containers.
2. Container children must be IUIComponents.
3. UIComponent children can be anything.
So, to add something like a Sprite to your Container, you would wrap the Sprite in a UIComponent. Here is an example:
<mx:UIComponent id=”spriteWrapper” initialize=”spriteWrapper.addChild(new Sprite(…))” />