1 Reply Latest reply on Nov 21, 2007 2:49 PM by pundabuyer

    duplicate and remove MC's

    pundabuyer Level 1
      I have created a flash movie using actionscript 2.0
      when the movie loads, stars burst out from another movie clip in all directions and then the alpha value is pulled down until they are transparent and at that point they are removed,
      however i need to know,

      how do i detect that an instance of that clip has been unloaded and then duplicate it to go again and again after each time it is 'disolved'

      also can a movie clip remove itself from its own enterFrame event?


      onClipEvent(load){
      //set starting position
      this._x=_root.pentagon._x;
      this._y=_root.pentagon._y;
      //set speed of movement
      speed=1+Math.random()*2;
      //different trail characteristics
      this._alpha = 40+Math.random()*100;
      //random size
      this._xscale = this._yscale=12+Math.random()*10;
      //rotate each star
      rotate =Math.random()*300;
      //ranodom y fling
      yfling=(Math.random()*10-5);
      xfling=(Math.random()*10-5);

      }


      onClipEvent(enterFrame){


      this._x+=yfling ;
      this._y+=xfling;
      this._rotation+=rotate;
      this._alpha-=7;
      if (this._alpha<=0){
      }

      }