Using Drag & Drop with Movie Clip
Through ActionScript 3 I am trying to create a slider for a tablet. I have 6 images grouped into a movie clip symbol with the instance name of images. I just want the user to be able to drag the images right or left to view them. This works although it doesn't stay in the bounding rectangle I want it to. It's basically free floating and can be dragged off the stage. To be honest I don't know much about ActionScript and have spent days on forums looking at ActionScript and trying to implement it into my own but nothing seems to work. I just want the user to be able to drag right or left and not have the movie clip move up or down or beyond my stage to the left or right. Below is my code if anyone could help I'd greatly appreciate it.
images.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);
function fl_ClickToDrag_2(event:MouseEvent):void
{
images.startDrag(false,new Rectangle(0,0,stage.stageWidth,150));
}
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);
function fl_ReleaseToDrop_2(event:MouseEvent):void
{
images.stopDrag();
}