Posted By

darkbaron1912 on 02/18/11


Tagged

next back


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

merritt212


next back


 / Published in: ActionScript 3
 

  1. private function moveNext() :int
  2. {
  3. currentImage += 1;
  4. if (currentImage >= listImage.length) currentImage = 0;
  5. return currentImage;
  6. }
  7. private function moveBack() :int
  8. {
  9. currentImage -= 1;
  10. if (currentImage < 0 ) currentImage = listImage.length - 1;
  11. return currentImage;
  12. }

Report this snippet  

You need to login to post a comment.