1 Reply Latest reply on Apr 9, 2010 9:56 AM by kglad

    Drag and drop to target

    MrMadJimmy1

      Hey.  A couple of weeks ago Kglad from the forums created some code for me for a drag and drop function.  It works great.  Unfortunatly im having to extend  to more draggable objects.  So they will be within another movie clip so i can have them scrolling.  After making the scroll, the draggable objects dont register on the droptarget as they are within another movie clip.  Below is i think the part of the code that needs to be changed so the draggable objects know where to find the drop target.

       

      Hope that makes sense.

       

      Could anybody help?

       

      Thanks

       

       

       

      this.stopDrag();

      if(eval(this._droptarget)==droptargetMC){

        • 1. Re: Drag and drop to target
          kglad Adobe Community Professional & MVP

          droptargetMC

           

          probably needs to be changed.  you could take a long-shot and try:

           

          _parent.droptargetMC

           

          but you'll probably need to see the code that defined droptargetMC and explain where it's defined relative to the location of the stopDrag() code.