1 Reply Latest reply on May 30, 2010 6:36 AM by kglad

    Swapping movie clips

    HandofNerds

      Hi I am trying to swapping a movie clip with another movie clip keeping the x y coordinates in the same location as the original. This is to be done within a case statement. Here is some of my code.

       

      bag.onPress = function() {

       

      // if bag is pressed select action

       

      switch(bag) {

      case _root.glow_id:  //

      // enter code

      xPos = this._x

      yPos = this._y

      unloadMovie(this);

      this.attachMovie("mc_grblow","grblow_id",xPos,yPos);

       

      break;

       

      Can you please tell me what I am doing wrong. The unloadMovie(this) works.