Panel inside ViewStack
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:ViewStack> <mx:Panel width="250" height="200" layout="absolute" title="Welcome" id="welcome"> <mx:Text x="10" y="28" text="test." width="200" /> </mx:Panel> <mx:Panel width="250" height="200" layout="absolute" id="contact" title="Contact"> <mx:Text x="10" y="25" text="test." width="200" /> </mx:Panel> <mx:Panel width="250" height="200" layout="absolute" id="aboutUs" title="About Us"> <mx:Text x="10" y="10" text="test" width="200" /> </mx:Panel> </mx:ViewStack> </mx:Application>