6 Replies Latest reply on Oct 30, 2006 1:44 PM by Ricky2k7

    Fade In/Out loop effect in actionscript

    Ricky2k7 Level 1
      Hi,
      I'm trying to make a mc with a shape fade in and out when someone clicks a button. No problem here...my issue is that i what to use actionscript to fade in and out continuasly.
      Exmp.:

      iMais.onEnterFrame = function()
      {
      this._rotation += 10;
      this._alpha -= 5;
      }

      This code makes the simbol rotate and fade out, but i what it to fade back in, and go on like this continuously.
      I tryed to do it with an if condition, but it didn't work, I'm not good at coding :-(

      Can anyone help me on this...