Question : limited movement of a dragable movie clip

I set up a movie clip a user can drag. The problem I'm having is that you can drag the clip right off the screen. Is there a way to limit the distance the clip can move? I've already played with the constrain to rectangle options with no luck. That option seems to just movie the clip a set distance when you click on the clip. Is there something I'm missing?  
Code Snippet:
1:
2:
3:
4:
5:
6:
on (press) {
		startDrag(this);
	}
	on (release) {
		stopDrag();
	}
Open in New Window Select All

Answer : limited movement of a dragable movie clip

1:
2:
3:
4:
5:
6:
7:
on (press) {
               startDrag(this,false,-490,-464,0,0);
               
       }
       on (release) {
               stopDrag();
       }
Open in New Window Select All
Random Solutions  
 
programming4us programming4us