2 Replies Latest reply on Oct 8, 2011 1:12 PM by 147539

    movie clip swaping problem

    147539

      I am making a ballon shooter game in flash 8.I made a buying feature.So, when you click on a buy button next to a weapon image after you finish a level, crosshair should change.

      for a button(the frame that the button is in) i made this action

      btn0.onPress = function() {

          movieX = aim._x;

          movieY = aim._y;

          aim.swapDepths(_root.getNextHighestDepth());

          _root.attachMovie("uzi","uzi",0,{_x:movieX, _y:movieY});

          aim.removeMovieClip();

      };

      and for the button itself this

      on(release){gotoAndPlay(6)}

      frame 6 is level 2.

      So when you click on a buy button it should direct you to frame 6 with another crosshair.7

      but the problem is when i click on a buy button the crosshair changes but it directs me to frame 1 with the second crosshair.

      pls help.