Filter Criteria

Select Your Category Select a component

Fade



<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" verticalAlign="top"
    horizontalAlign="center" backgroundGradientColors="[#671E1E, #4B0D0D]" paddingTop="0" backgroundGradientAlphas="[1.0, 1.0]">
   
    <mx:Fade id="fadeOut" duration="1000" alphaFrom="1.0" alphaTo="0.0"/>
    <mx:Fade id="fadeIn" duration="1000" alphaFrom="0.0" alphaTo="1.0"/>
       
    <mx:Panel title="Fade Effect" layout="vertical" color="0xffffff" borderAlpha="0.15" width="500"
         paddingTop="5" paddingRight="10" paddingBottom="5" paddingLeft="10" horizontalAlign="center" left="23" top="10">
         
         <mx:Text width="100%" color="0x323232" textAlign="center" paddingBottom="5"
            text="Use the Fade effect to show or hide the text and image. Use an embedded font when applying the Fade effect to text."/>

        <mx:Image id="flex" source="@Embed('images/compass.jpg')" visible="{cb1.selected}" hideEffect="{fadeOut}" showEffect="{fadeIn}"/>
       
        <mx:ControlBar horizontalAlign="center" paddingBottom="0" paddingTop="0">
            <mx:CheckBox id="cb1" label="visible" selected="true" textRollOverColor="0xACACAC" textSelectedColor="0xACACAC"/>
        </mx:ControlBar>
    </mx:Panel>
   
</mx:Application>

No comments:

Post a Comment