Sliding a panel in and out when the button is clicked

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="white">
<mx:WipeLeft id="wipeleft" />
<mx:WipeRight id="wiperight" />
<mx:Panel id="myPanel" label="Wipe Me" showEffect="{wipeleft}"
hideEffect="{wiperight}" />
<mx:Button label="Toggle the Panel"
click="myPanel.visible=!myPanel.visible" />
</mx:Application>
Related examples in the same category