Help needed please

I am trying to make a site that scrolls the pages from side to side. The olny problem is, I belive this code is telling my movie to duplicate a section. I need to attach different content for each page (members.bbnow.net/garrettpatz/junkymonkey.html) here is some of the code Ive done. If you need anything else to help me in the right direction, please let me know! any help would be very very appreciated. Thank you. (sorry i don’t have the .fla right now, and, I wrote that code very fast so, sorry for any errors

section = newArray(4);
max = _root.section.length;
itemDepth = 1;

for (i=0; i lessthan max; i++) {
//attach new item
root.content_mc.attachMovie(“section”,"section"+i,itemDepth);
curItem = content_mc[“section_”+i];
//puts _mc in Array
_root.section* = curItem;
if(i == 0) {
curItem._x = 0;
} else {
curItem._x = content_mc._width+1;
}
itemDepth
}

:love: :-\

i think that your prob may be that you are attaching the MC section each time, which will just duplicate section–try creating a separate MC for each section, making sure their linkage name is the same as what you put in the section array:

//fill array w content MC names:
section = [“main”, “content”, “about”, “contact”];
max = _root.section.length;

//attaches MCs associated w section names
for (i=0; i<max; i++){
//attach new item
myName = section*;
_root.contentMC.attachMovie(myName, myName, i+1);
//set xpos of each MC by multiplying pos by width
w=myName._width;
myName._x = w*i;

}
this way, it looks at the array to get the name of the MC you want to attach, and then goes and gets all of them in turn, setting the _x of each dynamically, based on array position–to add content sections, simply add another MC, make sure it’s linkage name is set right, and then add that name to your section array.
hope this helps…
-mojo

:love: Thank you so very much for that reply. That sounds like exactly what I need. I am going to try it when I go home for lunch in about 1 hr. Hopefully it will work. I am thinking that it will. I do appreciate it. I will post here what happens. Thank you again though!

(-:

Hey I fixed this in case anyone wants to know how I did it.

// attach new item
root.content_mc.attachMovie(“section”, "section"+i, itemDepth);
curItem = content_mc[“section_”+i];
// put the MC in an array
_root.section* = curItem;
if (i == 0) {
curItem._x = 0;
} else {
curItem._x = content_mc._width+1;
}
//added this to tell MC to go to the next frame, where i will have the content for my next page
curItem.gotoAndStop(i+1);
itemDepth++;
}

i basically just told it to go to the next frame, where I will have my next page of content. I think this will lower loading times as well, instead of having seperate movie clips?