I am trying to create a “NEXT” button that will load my external .swf’s into a container (tvscreen_mc). I’m new to arrays, and think I have this all wrong!
I tried this:
on (release) {
filesArr=new Array(“pgs/test2.swf”,“pgs/test3.swf”,“pgs/test4.swf”,“pgs/test5.swf”)
counter=0;
tvscreen_mc.loadMovie(filesArr[counter])
}
It works properly for the first one. It will unload the “pgs/test1.swf” and go to “pgs/test2.swf”, but then never works again. It just keeps reloading “pgs/test2.swf”. Doesn’t continue on to 3, 4, 5 (eventually 20). Please help?
I’m really confused.
Once I get this working, how do I make a “PREVIOUS” button? By reversing the order of the arrays?