1 person found this helpful
TabNavigator children must extend Container. You can put Test inside a Canvas and put that container in the TabNav.
Flex SDK Developer
Adobe Systems Inc.
Here's my dilemma,
I ran some tests and found that using a Canvas worked well if Test only contains common components (e.g. Text, TextField etc.). However, in my case Test needs to be something other than a Canvas because it contains a Sprite-- I have to use a Sprite as I need some dynamically generated objects to be clickable. If I make Test into a UIComponent, then all of my Sprites appear, but not the common components.
I can make the common component appear if I use rawChildren, but I don't like using rawChildren as it feelI like a work around that will cause problems later. Can you recommend some other way I could be thinking about this?
Wrap your Sprites in UIComponent:
var mySprite:Sprite = new Sprite();
.... do drawing with the Sprite or whatever
var uic:UIComponent = new UIComponent();
If this post answered your question or helped, please mark it as such.
Perfect-- thank you!