Skip to main content
Known Participant
February 11, 2008
Question

problem with cycling through variable

  • February 11, 2008
  • 1 reply
  • 172 views
i am loading in external images through a xml file, and trying to navigate them by using forward and backwards buttons, but i can figure out how to go from 1 to 4 backwards, when i try, it either doesnt work or the counter will simply not go lower/higher then 4. please help me, do you have any ideas.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 11, 2008
you shouldn't be calling imgLoad() in an endless loop. load your images sequentially until all are loaded and either wait until all loading is complete to enable your buttons or, use a different (from i) to display your images.