w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to achieve flex fade effect show time and hide time are different but consecutive

If I understand your question right, first set your hideFade duration to 5000 (5 seconds)

<s:Fade id="hideFade" alphaFrom="1" alphaTo="0"
duration="5000" target="rssTextRichText}"/>

For the second part, you want to stop the hide-effect if it's on and start showing the showFade effect from that point, you can capture the EffectEvent.EVENT_START, stop the hide effect and start showing the showFade-effect:

function foo_handleEffectStart(e:EffectEvent):void {
 if(e.target == "showFade") {
   showFade.start(); // dunno if this is necessary or if the event starts

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.