show/hide effect : Show Hide Effect « Effects « Flex






show/hide effect

show/hide effect
   
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#eeeeee">
  <mx:Image id="myImage" source="logo.jpg" x="150" y="100" showEffect="Fade" hideEffect="Fade"/>
  <mx:Button x="150" y="375" label="Show Image" click="myImage.visible=true"/>
  <mx:Button x="374" y="375" label="Hide Image" click="myImage.visible=false"/>
</mx:Application>

   
    
    
  








Related examples in the same category

1.Add hide effect to a controlAdd hide effect to a control
2.ShowEffect and HideEffect for Canvas inside a ViewStackShowEffect and HideEffect for Canvas inside a ViewStack
3.Show and hide tooltip with effectShow and hide tooltip with effect
4.Show/hide as the effect TriggerShow/hide as the effect Trigger