5 Replies Latest reply on Aug 21, 2009 8:43 AM by ckpepper02

    Remove attached movieclip in reverse order of placement


      Is it possible in AS2 to remove an attached movieclip instance in reverse order? I want to give the user the ability to click an erase button and remove the most recent instance of an attached movie. I have tried .swapDepths and getting inconsistent results. Here is what I have:


      this.onMouseDown = function(){
      var drawdot:MovieClip;


      drawdot = this.attachMovie("dot", "dot_mc", this.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});


      var nextdepth = this.getNextHighestDepth();
      trace (nextdepth);


      clear_btn.onPress = function() {






      Thanks for your time.