making a draggable item, that can only drag on an axis.
Hi, thanks for your time.
What I want to create is a movie clip, that I can drag, but only on axis, such as up and down, but not left to right. For example, only on an X axis, but not on a Y axis.
The code i'm currently using to make the items draggable is:
pc.onPress=function(){
startDrag("pc",true,50,50,550,350);
removeMovieClip("cnt");
}
pc.onReleaseOutside=pc.onRelease=function(){
stopDrag();
}
"pc" is the instance name of the movie clip I want to drag.
"cnt" is a line that I've got drawn between the various draggable points I've created.
Please help! Thanks again for your time,
Rich