8 Replies Latest reply on Oct 28, 2006 4:26 PM by kglad

    fade and STOP images

    vivi_sclark
      Hi,
      I'm using this code below to fade pictures. How can I have them "stop for 3sec" and continuing fading?
      Any help, please.
      Thanks

      stop();
      this.banner_clip_1._alpha = "100";
      this.banner_clip_2._alpha = "0";
      this.banner_clip_3._alpha = "0";
      this.banner_clip_4._alpha = "0";
      this.banner_clip_5._alpha = "0";
      this.banner_clip_6._alpha = "0";
      this.banner_clip_7._alpha = "0";
      this.banner_clip_8._alpha = "0";
      this.banner_clip_9._alpha = "0";
      this.banner_clip_10._alpha = "0";
      this.banner_clip_11._alpha = "0";
      this.banner_clip_12._alpha = "0";
      this.banner_clip_13._alpha = "0";
      var speed = 2;
      mctoFade = 2;
      fadeI = setInterval(fadeF, 40);
      thisMC = this;
      function fadeF() {
      if (mctoFade<13) {
      nexttoFade = mctoFade+1;
      } else {
      nexttoFade = 1;
      }
      thisMC["banner_clip_"+mctoFade]._alpha -= speed;
      thisMC["banner_clip_"+nexttoFade]._alpha = 100-thisMC["banner_clip_"+mctoFade]._alpha;
      if (thisMC["banner_clip_"+mctoFade]._alpha<=0) {
      thisMC["banner_clip_"+mctoFade]._alpha = 0;
      thisMC["banner_clip_"+nexttoFade]._alpha = 100;
      mctoFade = nexttoFade;
      }
      updateAfterEvent();
      }