When the Dissolve effect played the component changes from transparent to opaque, or from opaque to transparent.
When the Dissolve effect played the component changes from transparent to opaque, or from opaque to transparent.When the Dissolve effect played the component changes
from transparent to opaque, or from opaque to transparent. You can use the alpha
property. The tag of Dissolve effect is <mx:Dissolve>. There are the following
attribute of Dissolve effect.
<mx:Dissolve
id="ID"
alphaFrom="val"
alphaTo="val"
color="val"
/>
In this example you can see how we can use a Dissolve effect With components.
|
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=" library://ns.adobe.com/flex/spark"xmlns:mx=" library://ns.adobe.com/flex/mx"minWidth=" 955" minHeight="600">color="#FFFFFF"/> color="#FFFFFF"/> </fx:Declarations>width=" 487" height="275"chromeColor=" #000000" color="#CCCCCC">fontFamily=" verdana" color="#000000"/>source=" @Embed(source='file:/C:/work/bikrant/image/umbrella.png')"x=" 181" y="63"rollOverEffect=" {dissolveOn}"rollOutEffect=" {dissolveOff}"/></s:Panel> </s:Application> |

To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.