# Need help with an array and external swf's

**URL:** <https://forum.kirupa.com/t/need-help-with-an-array-and-external-swfs/282954>\
**Category:** Uncategorized\
**Created:** [February 28, 2009, 5:38am UTC](https://forum.kirupa.com/t/need-help-with-an-array-and-external-swfs/282954 "2009-02-28T05:38:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumire](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sumire](https://forum.kirupa.com/u/sumire)\
**Post date:** [February 28, 2009, 5:38am UTC](https://forum.kirupa.com/t/need-help-with-an-array-and-external-swfs/282954/1 "2009-02-28T05:38:20Z")

</div>

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?
