I'm wondering if someone here can help.
What i have right now..
is an image gallery, with controls that when clicked go to the next image, nothing fancy at all. The images are in a movie that i called 'images_mov' that movie is on a layer on my main movie. The main movie has three layers, (from the bottom up) the first contains the movie with all the images. The second has the controls, next and previous. The final top layer contains the action script.
What i want to know ...
is how can i add an effect on each image when the user clicks the next and or back button with out using tween effects, just pure action script.
Also how can i make it so the movie plays automatically, but the user can still have some interactivity like going back an image or forward.
Anyway here is my ac code i have
Code:
stop();
function goPrev(event:MouseEvent):void {
if (images_mov.currentFrame == 1) {
images_mov.gotoAndStop(totalFrames);
} else {
images_mov.prevFrame();
}
}
function goNext(event:MouseEvent):void {
if (images_mov.currentFrame == totalFrames) {
images_mov.gotoAndStop(1);
} else {
images_mov.nextFrame();
}
}
prev_btn.addEventListener(MouseEvent.CLICK,goPrev);
next_btn.addEventListener(MouseEvent.CLICK,goNext);