Hi all,
I’m currently creating a game which involves the use of an array of different movieclip objects which can be added to the stage dynamically when the user clicks on the desired movieclip.
I’m currently struggling with the creation of this and was hoping for some help. Basically I’m creating an Array which holds about 12 images; initially only the first image positioned in the array is added to the stage while the others are not. My intention is that the user can iterate through the array using next and previous buttons so that when the user presses the next button, the currently displayed image is removed from the stage and replaced with the next image positioned in the array which is then added to the stage. Likewise, if the user was currently at the 2nd image in the array and they press the previous button, the current image is removed from the stage and replaced with the previous image in the array (in this case the first image) which is then added to the stage.
Also, I would like to be able to make the array loop if possible; if the user keeps pressing the next button and they reach the last image in the array the array restarts at the image in first position; likewise if the user is at the first image in the array and presses the previous button, the array goes to the last image and will eventually work back towards the first image if the previous button is pressed.
Any help with this would be very much appreciated :emb: