6 Replies Latest reply on Nov 11, 2014 9:15 PM by bald_from_stress

    Movie clips overlapping

    bald_from_stress

      I am using flash MX

      I am using windows 7 64-bit

       

      I am trying to create a symbol that will be replaced by another symbol when a user clicks on it.

       

      My code reads:

       

      on(press){

        //remove first clip

        _root["answer1"+(level-1)].removeMovieClip();

        //add new click in its place

        attachMovie("TWA","newclip"+level,level);

        _root["newclip"+level]._x = 5;

        _root["newclip"+level]._y = 5;

        level++;

      }

       

      What ends up happening is that the second clip appears as wanted but the first clip does not get removed so they overlap each other.

      I made sure the instance was named answer1, the symbol is named answer1 and the linkage is answer1.

      I have "export for action script" checked as well.

       

      TWA by the way stands for "the wrong answer".

       

      Can anyone please tell me why this is happening?