This content has been marked as final. Show 5 replies
there are many problems with that code. but to start, it's not clear where loaded and filesize are defined. judging from your coding, they probably aren't defined which is another set of problems.
in any case, when loaded is equal to filesize, one or both of those for-loops are going to result in repeated calls to slideshow() are repeated setInterval() function calls that should result in chaos.
Fair enough I am relatively new to this, (although eliminating the loaded==filesize if statement produces identical results).
This works perfectly when I put the photos in a single dimensional array and physically increment the single variable ( b++) to move through the photos (Images(b)). It is when I do a for loop on a multidimensional array (mainArr(i)(k)), that the program plows through and only presents the last image seemingly ignoring setInterval.
So, starting with what I am trying to accomplish which is incrementing through a multidimensional array to present each associated photo for five seconds before moving on to the next, can anyone point me in the direction of a solution (again because I have limited experience with flash, code suggestions would be most helpful).
Thanks for any help.
you should load all your images before starting your slide show. that would be the easiest solution and the only one that would allow you to safely display each image for 5 seconds before advancing to the next image.
There are potentially 1000s of images, the array in the code is using a test and very limited XML file to poputate the array. The real thing will be much larger
then you'll need to use a preloader to load the particular "tour" that you want to display. when that's loaded you can start your slide show (using setInterval) for that particular tour.