Rotating and moving the image using action script
flashallys.addEventListener(Event.ENTER_FRAME, rightAnimation);
function rightAnimation (e:Event):void {
if (flashallys.x <= 300) {
flashallys.x += 1;
if (flashallys.x > 300) {
flashallys.x -= 300;
}
flashallys.rotation += 10;
}
}
This movie requires Flash Player 9
Tags: ENTER_FRAME, rotation
Hi, Stranger! Leave Your Comment...