Hey, I’m a bit of newbie when it comes to AS, but I’ve got flash animation down pretty well. I’m working on a photojournal system, based on the kirupa.com photo gallery tutorial, and I’m working on customizing it. Part of this being a image count number(dynamictext named ‘viewed’) that changes each time the button’s pushed forward or backward, but is limited to the number of photos…
Now the problem is that well, the backbutton goes into negatives once it gets down to zero, and the forward button stops at 60… but the gallery loops, it goes from the last image to the first when you go forward and vice versa going back ward, is there anyway I can get this to go 0 to 60 backward and forward with AS?
Hopefully that will express what I’m trying to do… basically count up to a set max number, then when that numbers hit, start back at one again, and vice versa when going in reverse, go 1… 60…59… etc. Thanks for your help.
I think i understand what you are after and i think this achieves what you want.
If i have miss understood whatt you want please correct me and feel free to ask any questions although the code is commented
I have only edited code for clicking the arrows, not the key press functions.