Loading external .swf from an array in array order

[COLOR=#333333][FONT=adobe-clean]I was wondering if someone can help me out. The code below demonstrates pulling in multiple .swf from an array and plays each one randomally when the "main .swf re-publishes each time. I cant figure out how to play each .swf in the order that specifies in the array.

example: **I want the main .swf to play ‘clip0’,‘clip1’,‘clip2’ in that specific order not random.

"when I publish out the .swf i want it to play clip0, then if I publish it out again I want it to publish out clip1, etc… in that specific order each time I re publish.**

Can someone assist me.

------code-------------

stop();[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]var movieArray:Array = [‘clip0’,‘clip1’,‘clip2’];[/FONT][/COLOR]

[COLOR=#333333][FONT=adobe-clean]var loader:Loader = new Loader();[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]var index:int = movieArray.length * Math.random();[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]var url:String = movieArray[index] + ‘.swf’;[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]trace(“Attempting to load”, url);[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]loader.load(new URLRequest(url));[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete);[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loaderIOError);[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]addChild(loader);[/FONT][/COLOR]

[COLOR=#333333][FONT=adobe-clean]function loaderComplete(e:Event):void {[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean] trace(“Successfully loaded”, url);[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]}[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]function loaderIOError(e:IOErrorEvent):void {[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean] trace(“Failed to load”, url);[/FONT][/COLOR]
[COLOR=#333333][FONT=adobe-clean]}[/FONT][/COLOR]