1 Reply Latest reply on May 31, 2007 1:40 PM by peterent

    Yellow Fade Technique

    eighty1
      i'm sure people are familiar with the Yellow Fade Technique made famous by Basecamp. (Ajax indicator that something's been updated) Like so: http://www.iamjacksdesign.com/blog/yellow-fade-technique/

      What's an easy way to accomplish this in Flex?
        • 1. Re: Yellow Fade Technique
          peterent Level 2
          Try this:

          <mx:Canvas id="hilight" backgroundColor="yellow" ... >
          <mx:Text width="100%" height="100%" text="..." />
          </mx:Canvas>

          Now you have a Canvas with a yellow background enclosing the text. To fade it:

          <mx:Fade id="fadeOut" target="hilight" alphaFrom="1" alphaTo="0" />

          Then when it is time to fade it: fadeOut.play();

          There are probably a couple of other ways, too.