Dissolve effect w/ rollOverEffect event
i have simple question using flex dissolve effect , rollover event handler.
in below example, when roll on label, label dissolves red, correctly, once dissolve effect completes, label's alpha resets normal state. expecting, if rollover label mouse, dissolve effect dissolve label red, , stay there red, until rollout.
i've tried use effectend handler set alpha once dissolve complete, problem persists.
any ideas?
<?xml version="1.0" encoding="utf-8"?>
<mx:application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="vertical" backgroundcolor="#ffffff" horizontalalign="center" verticalalign="center">
<mx:dissolve id="dissolveout" color="#ff0000" duration="1000" alphafrom="1.0" alphato="0.5"/>
<mx:dissolve id="dissolvein" color="#ff0000" duration="1000" alphafrom="0.5" alphato="1.0"/>
<mx:text id="text2dissolve" text="roll on me , watch me dissolve , reset" fontsize="24" fontweight="bold" rollouteffect="dissolvein" rollovereffect="dissolveout"/>
<mx:text text="why alpha resetting after dissolve completes?" fontsize="12"/>
<mx:text id="wtd" text="what to?" fontsize="12"/>
</mx:application>
in below example, when roll on label, label dissolves red, correctly, once dissolve effect completes, label's alpha resets normal state. expecting, if rollover label mouse, dissolve effect dissolve label red, , stay there red, until rollout.
i've tried use effectend handler set alpha once dissolve complete, problem persists.
any ideas?
<?xml version="1.0" encoding="utf-8"?>
<mx:application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="vertical" backgroundcolor="#ffffff" horizontalalign="center" verticalalign="center">
<mx:dissolve id="dissolveout" color="#ff0000" duration="1000" alphafrom="1.0" alphato="0.5"/>
<mx:dissolve id="dissolvein" color="#ff0000" duration="1000" alphafrom="0.5" alphato="1.0"/>
<mx:text id="text2dissolve" text="roll on me , watch me dissolve , reset" fontsize="24" fontweight="bold" rollouteffect="dissolvein" rollovereffect="dissolveout"/>
<mx:text text="why alpha resetting after dissolve completes?" fontsize="12"/>
<mx:text id="wtd" text="what to?" fontsize="12"/>
</mx:application>
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment