Using a component as a container in a view stack
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"> <mx:Panel title="TVs" width="100%" height="100%"> <mx:TextInput id="myTI" /> <mx:Button label="Search for TVs" /> </mx:Panel> </mx:Canvas> </mx:Application>