3 Replies Latest reply on Jan 1, 2007 12:30 PM by arunbe

    I have problems with swapDepths....

    Seise Level 1
      I have made a test page on the Internet to see how I shall do my new page, but I have problems..... You can see the test page at: http://www.mickesei.se/flash/index.html

      What is the problem then?! The problem is if you click on button1 it´s opening OK, the if you click button 2 it´s also OK. But, if you then click on button 1 once again, nothing happends. But if you double click on it then it opends again. I want it to open again on a single click like at the first time... How do I do that....?

      Here is the code: (The Swedish word Knapp1 = button1)

      this.knapp1_mc.onRollOver = function(){
      knapp1_mc.gotoAndPlay("_over");
      }

      this.knapp1_mc.onRollOut = function(){
      knapp1_mc.gotoAndPlay("_out");
      }

      this.knapp1_mc.onRelease = function(){
      _root.anim1_mc.gotoAndPlay("1");
      _root.anim1_mc.swapDepths(1)
      }


      this.knapp2_mc.onRollOver = function(){
      knapp2_mc.gotoAndPlay("_over");
      }

      this.knapp2_mc.onRollOut = function(){
      knapp2_mc.gotoAndPlay("_out");
      }

      this.knapp2_mc.onPress = function(){
      _root.anim2_mc.gotoAndPlay("1");
      _root.anim2_mc.swapDepths(1)
      }