I have created an image slider in Flash using Actionscript 2. Basically I have five 600 px images stacked beside eachother inside one clip called ContentMC. Currently the slider works fine to scroll between images when the corresponding buttons are pressed, But what I am trying ro figure out is how to have the images scroll on their own every few seconds, without requiring user interaction. I have the following code on an actions layer on the main timeline:
import mx.transitions.Tween;
import mx.transitions.easing.*;
btn1.endX = 64;
btn1.onPress = doPress;
btn2.endX = -536;
btn2.onPress = doPress;
btn3.endX = -1136;
btn3.onPress = doPress;
btn4.endX = -1736;
btn4.onPress = doPress;
btn5.endX = -2336;
btn5.onPress = doPress;
function doPress() {
var twX = new Tween(contentMC, "_x", Strong.easeInOut, contentMC._x, this.endX, 1.5, true);
}
I have an instance called contentMC containing all of the images. I have 5 instances called btn1 through btn5 each containing the button movie clip.
Again, The specific functionality I am looking for help with is having the images slide on their own every few seconds (as well as retaining the ability to slide to a specific image by hitting the corresponding button). I apologize for any ignorance on my part, but I am not too proficient with Actionscript.
Thank you all in advance.