Rotate a Duplicated Movieclip
I am trying to finish a small project and am having trouble continuosly rotating a duplicated movieclip via a button. It will rotate by clicking the button; however, I have it set to 7.5 degrees and a complete rotation takes quite a while. We would like to just click and hold to rotate it. Once the button is released it would stop. Any help would be very much appreciated. My code is below:
MovieClip (myMC):
on (press) {
startDrag("", false);
}
on (release) {
stopDrag();
}
on (release) {
setProperty("/rotate", _name, "");
setProperty("", _name, "rotate");
}
Rotate Button:
on (press) {
ChangeRotation = getProperty("/rotate", _rotation);
setProperty("/rotate", _rotation, Number(ChangeRotation) -7.5);
}
Button used to Duplicate the movieclip:
on (release) {
_root.myMC.duplicateMovieClip ("myMC_"+ "x",this.getNextHighestDepth());
setProperty ("myMC_"+"x", _x, 585);
setProperty ("myMC_"+"x", _y, 400);
x++;
}
