1 Reply Latest reply on Jul 31, 2006 1:45 AM by Jon_Moyles

    swapDepths difficulties

    flashingnotallowed
      Hi,

      Thanks to 'KGLAD' i got the 'draggable objects' issue resolved...
      however, I am also trying to add swapDepths to my new layer objects, and am having some diffuculties with it.

      I got the layers to Swap, but i'd like them to swap on a double click and not a single click like it does now.
      what happens is that the DragRelease doenst' seem to be working after adding the Swap command.
      the objects just keep dragging until i click on another one. i would like the layers to swap on a double click and then stop dragging on mouse release.
      here is what i have so far.
      any help would be great...thnx...

      mctree.onPress = function():Void {
      this.startDrag();
      };
      mctree.onRelease = function():Void {
      this.stopDrag();
      };
      mctree.onRelease = function():Void{
      this.swapDepths(mchouse);
      };