Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2006
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Draggable MC inside Draggable MC

    Hi Guys,

    I was wondering if this is possible?

    I have a MC the drags up and down, but inside that MC i also have an MC that i want to drag from Left to Right. The Main MC is called UpDown and the one inside is called LeftRight, here is the code i am trying to use.

    Code:
    UpDown.onPress = function {
         UpDown.startDrag(false,this._x,-500,this._x,500);
    }
    
    UpDown.onRelease = function {
         UpDown.stopDrag();
    }
    
    UpDown.LeftRight.onPress = function {
         UpDown.LeftRight.startDrag(false,0,this._y,60,this._y);
    }
    
    UpDown.LeftRight. onRelease = function {
         UpDown.LeftRight.stopDrag();
    }
    But i cant get it to work Any Ideas?

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Does nothing work, or when you click on the LeftRight does the UpDown move up and down?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •