1 Reply Latest reply on Jul 10, 2008 10:22 AM by 3-Putt

    Fading MC issue

    3-Putt
      I am duplicating a MC and then trying to remove it by fading it.
      What am I doing wrong?

      I have the below code attached to the MC

      onClipEvent (load) {
      scale = (random(100)+50);

      this._x = 522;
      this._y = random(50);
      this._alpha = random(80);
      this._xscale = scale;
      this._yscale = scale;
      }

      The frame script is

      amount = 10;
      while(amount>5) {
      duplicateMovieClip (_root.circle, "circle" + i, i);
      i = i + 1;
      amount = amount-1;
      }

      the circle duplicates fine, but I am having a heck of a time fading the circle in the timeline.

      Anybody?

      Thank you,
      Brian
        • 1. Re: Fading MC issue
          3-Putt Level 1
          I figured it out. It helps to search

          onClipEvent (load) {
          scale = (random(100)+50);

          this._x = 522;
          this._y = random(50);
          this._alpha = random(100);
          this._xscale = scale;
          this._yscale = scale;
          }

          onClipEvent(enterFrame){

          this._alpha-=.5;
          if (this._alpha<=0){
          }

          }