Iris And Zoom : Iris Effect « Effects « Flex






Iris And Zoom

Iris And Zoom
         
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#eeeeee">
  
  <mx:Zoom id="myZoom" duration="2000"/>
  <mx:Image id="zoomImage" source="logo.jpg" x="362" y="55" showEffect="{myZoom}" hideEffect="{myZoom}"/>


  
  <mx:Iris id="myIris" duration="2000"/>
  <mx:Image id="irisImage" source="logo.jpg" x="22" y="55" showEffect="{myIris}" hideEffect="{myIris}"/>
  
  <mx:Button x="241" y="330" label="Show Images" click="zoomImage.visible=true;irisImage.visible=true;"/>
  <mx:Button x="362" y="330" label="Hide Images" click="zoomImage.visible=false;irisImage.visible=false"/>

</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Using the Iris effect on the buttonUsing the Iris effect on the button
2.Iris effectIris effect