Well you would just name your buttons btn0, btn1, btn2, btn3, btn4 and put the buttons on the _root timeline and then create an actions layer and place that code in it. Then in the swfArray just assign the slots with the name of the swf's.
ie: being how the for loop i starts at 0 and would call swfArray[0], you would want to use the name of the swf that btn0 would load or reload.
Far as the code I scribbled, I was having trouble with getting the function to work correctly. Maybe someone can explain why it wasn't working?
|