The last parameters, left, top, right, bottom are used to defined a drag area. This can be useful if you don't want a movie clip to be dragged out of a specific area see the movie below :
In the above movie I have just drawn a 400x300 rectangle (registration point in the center), converted it a s movie clip, named it myRectangle and centered it on the stage. Then I have added the left, top, right and bottom parameters to the code (The only changes to the previous code are colored in white). The coordinates here are defined in reference to the root of the movie.
redCircle.onPress = function(){ |
redCircle.onPress = function(){ |
Continue to next page...