I’m having some problems getting a frame animation to rotate completely clockwise and counterclock wise in Flash. The frame animation has been exported from Swift 3D. I have a left and right arrow underneath the animation, that depending when the user presses them, will spin the donut.
Here is the code…
counterClockBut.onPress = function() {
counterClockWise = true;
};
counterClockBut.onRelease = function() {
counterClockWise = false;
};
clockWiseBut.onPress = function() {
clockWise = true;
};
clockWiseBut.onRelease = function() {
clockWise = false;
};
this.onEnterFrame = function() {
if (clockWise == true) {
rockFrames.nextFrame();
updateAfterEvent();
} else if (counterClockWise == true) {
rockFrames.prevFrame();
updateAfterEvent();
}
};
But since I have a stop action on the first frame of the animation clip I’m unable to spin it either way from the beginning.
Can anyone point me in the right direction on finding a solution.
Thanks in advance…