Atomica
February 27th, 2003, 08:07 PM
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...
I'm currently at this point:
for my back button I have this:
on(release){
if(_root.viewed < 60){
_root.viewed--
}
}
and for my forward button I have this:
on(release){
if(_root.viewed < 60){
_root.viewed++
}
}
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?
Please help if you can, thanks a billion.
I'm currently at this point:
for my back button I have this:
on(release){
if(_root.viewed < 60){
_root.viewed--
}
}
and for my forward button I have this:
on(release){
if(_root.viewed < 60){
_root.viewed++
}
}
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?
Please help if you can, thanks a billion.