Slideshow help

Hi

Can anyone tell me what i need to do to add more than 1 instance of a movie clip to a slideshow, the actionscipt i have so far is below;

[COLOR=red]this.createEmptyMovieClip(“theScene”, 1);
theScene._x = 150;
theScene._y = 100;[/COLOR]
[COLOR=red]objectsInScene = new Array();[/COLOR]
[COLOR=red]focalLength = 500;[/COLOR]
[COLOR=red]for (i=0; i=8; i++){
attachedObj = theScene.attachMovie(“pane”, “pane”+i, i);[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=#ff0000][/COLOR]
[COLOR=black]I want 8 “pane”'s to appear in a horizontal row but i only get 1??[/COLOR]

Thanks
Andy