Hello Kirupa people =)
Just a small problem here. I have built a counter that is suppose to correspond an ordinal number to it’s respective picture. Currently I have managed to do so graphically using the timeline, however this proves hasselsome when having to change the number of pictures. The pictures are loaded into my photoalbum dynamically using an array. I would like to dynamically correspond a number to each picture. This way is i have five pictures it will go to 5 then back to 1, same as if i have 99 pics (maximum to be set). Attached is the what the counter will be used in and the counter itself. As you can see it starts at “00” but that’s just initially, it should never go back to “00” when a picture is present even though image starts at image0.jpg.
if this is confusing here is the layout
example layout:
pic generater loads with initially nothing
no image, counter displays “00”
user clicks the forward button
image0.jpg loads, counter displays “01”
user clicks the forward button
image1.jpg loads, counter displays “02”
user clicks the back buttion
image0.jpg loads, counter displays “01”
when user gets to the end and clicks the forward button
image0.jpg loads, counter displays “01”
if user is at the beginning and clicks the back button
imageXX.jpg loads (“XX” being whatever the last image number is), counter displays “NN” (“NN” being whatever the last counter numeber is that corresponds to the image. ex. image49.jpg, counter displays “50”).
unfortunatly, the file would be to big if i included the pictures, but if u like you may test the view by making a folder called animation is the same directory folder as the test4.swf (do not put test4.swf in the animation folder) and save 9 pictures in there with there files names as image0.jpg, image1.jpg, image2.jpg… image9.jpg. The pictures should be no bigger then 425x425 pixels.
also there is additional code is used for the left and right keys to correspond to the back and forward button, these will need to be changed to.
if anyone knows how to correct any of this PLEASE POST =)
-Blackfire :opera: