I edited the one in your first post.
Commented things out that were causing errors.
And basically got the dragging of the two components working.
There were a lot of errors with _parent and _root still being used. In AS3 it's parent and root, without the _. And many times you have to cast these as MovieClips, or cast them as what they are on their highest level.
Don't worry about that enterframe thing I mentioned earlier. I see that you are using the startDrag, and StopDrag methods.
Anyways look over the commented code and see why it was causing errors and then look at the correct version.