Sliding a panel in and out when the button is clicked : Panel Style « Container « Flex






Sliding a panel in and out when the button is clicked

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

1.A opaque panelA opaque panel
2.Panel TransparencyPanel Transparency
3.Floating panelFloating panel
4.Panel CornersPanel Corners
5.A transparent panelA transparent panel
6.Use SetStyle to change panel style valueUse SetStyle to change panel style value
7.Set paddingTop, paddingBottom, paddingLeft, paddingRight for PanelSet paddingTop, paddingBottom, paddingLeft, paddingRight for Panel