PDA

View Full Version : drag and drop with scrolling


bevans9908
11-01-2007, 06:41 PM
I'm new to flash and actionscript and am trying to configure a button for drag and drop and simultaneously scroll text (basically like the scrollbar component). I have been successful in figuring out the code for the drag and drop feature, but the text (actually a mc) currently moves in the same direction as the button when dragged. I need it to move in the opposite direction. I've been searching for a solution for the past few days with no luck. Any help would be greatly appreciated.

Here's what I have so far:

on (press) {
startDrag(this, true, 851.5, 260, 851.5, 646);
startDrag(this.servtext_mc, true, -381, -51.6, -381, -450.1);
}

on (release) {
stopDrag();
}

on (releaseOutside) {
stopDrag();
}