Whenver I add VBox container to UIComponent it never occurs on the screen, but when I added it to Application.application.addChild(vbox) then it become visible?
Can I only add Vbox to the application and not to a uicomponent? or what?
If you're adding a child to a plain UIComponent, you need to remember to explicitly set the size of it's children or they won't be visible. Flex containers will do it automatically, but you have more control in UIComponents.
ActionScript Code:
var w:Number = myVBox.getExplicitOrMeasuredWidth();
var h:Number = myVBox.getExplicitOrMeasuredHeight();
myVBox.setActualSize(w, h);