1 Reply Latest reply on Feb 28, 2007 2:44 PM by Rothrock

    Swap Depths on buttons

      Hi.
      I did just realise that swapDepths() doesnt work with buttons. Is there any other way to change depths for buttons

      /Antewik
        • 1. Re: Swap Depths on buttons
          Rothrock Level 5
          Yes.

          Button.prototype.swapDepths=MovieClip.prototype.swapDepths;

          This defines the swapDepths method for the button class to be the same as for the MovieClip class. It works up to Flash 7. I'm sure it works in Flash 8 too, but I haven't tested it.

          Also, I don't know if it causes any problems, but none that I have seen.