I have this floating movieClip, However I want to make it so that the movie clip can only rotate partially on its x and y axis. I do not want it to rotate 360 degrees with x or y mouse movements.

This is my code

Actionscript Code:
var rateOfChange:uint = 100;
MyClip.rotationY += ((stage.stageWidth/2) - mouseX)/rateOfChange;
MyClip.rotationX += ((stage.stageHeight/2) - mouseY)/rateOfChange;
render.renderScene(scene, camera, viewport);

Thank you