1 Reply Latest reply on Apr 18, 2008 1:45 AM by markh

    Initiate another action after function complete

    Christopher Barnard
      Can someone help me with this all I want to do is initiate another action after my fade out is complete - how would I set up flash to detect that the fade has reached zero opacity - and advance to the next frame of my movie. It will probably involve some kind of if/else statement. Here is my code:

      function fadeOut():Void {
      my_mc.tintTo("#000000", 100, 5, "easeOutBounce");

      }

      fadeOut()

      I call the function then I want to write something like:

      if (fadeOut() == true) {
      gotoAndPlay(3);

      }
      else
      {
      doNothing
      }

      Obviously how nice and simple if that worked but it doesn't - any suggestions warmly appreciated.

      Regards

      Chris