Hey guys.
I was wondering cause i have a movie clip called leftleaver_mc and ive made it dragable with the following codes.
this.leftswitch_mc.onPress = function() {
leftswitch_mc.startDrag()
}
this.leftswitch_mc.onRelease = function() {
leftswitch_mc.stopDrag()
}
that code obviously works but i what i want to do is make it so they can only drag up and down between the y coordinates of 990.1 and 793.8 on the stage and also not beable to move from the x coordinates of 276.4 while there dragging up and down.
================================================== ====
also another thing is when there moving the the leftswitch_mc up and down between them coordinates i want it to control an animation ive made in another mc called testcylinder_mc like the frame lable i want it to control in the cylinder mc is around 30 frames long starting at frame 6 of the mc’s timeline and if they movie the leftswitch_mc up i want it to play that frame forward at normal speed and if they move leftswitch_mc down i want it to play that frame in reverse at normal speed and also if leftswitch_mc is at its original starting point i want the cylinder mc to return to frame 1.
thanks for reading i hope ive exsplained it easy for u guys to understand and to beable to help.
thanks in advanced