3 Replies Latest reply on Aug 14, 2010 4:29 PM by kglad

    getNextHighestDepth() on windows

    prodigalmaster Level 2

      Hi,

      I made 4 windows (squares) and they each have a dragbar (moveiclip).

      Here is some code so you can drag them:

       

      MC_windowQ.dragbarQ.onPress = function() {

           startDrag(MC_windowQ);

          MC_windowQ.getNextHighestDepth();

      };

       

      I also have code that stops it dragging. What I need answering though is how to make the window get the highest depth (so that it is on top of the other windows after pressing the dragbar. I tried using getNextHighestDepth() but it doesn't seem to be working! Please tell me how to get it working or how to use a different function etc.

       

      Thanks!