2 Replies Latest reply on Mar 28, 2009 4:13 PM by nHeroGo

    So simple that I ought to be ashamed...

    nHeroGo Level 1
      Why is this not working? It's three lines of code. I want it to fade in and out, in and out.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">

      <!-- pulsing the button -->
      <mx:Fade id="rollover_fade_out" target="myButton" alphaFrom="1.0" alphaTo="0.0" duration="5000" effectEnd="rollover_fade_in"/>
      <mx:Fade id="rollover_fade_in" target="myButton" alphaFrom="0.0" alphaTo="1.0" duration="5000" effectEnd="rollover_fade_out"/>

      <mx:Button id="myButton" label="Button" click="rollover_fade_out" horizontalCenter="0" verticalCenter="0"/>