im workin with a template of joshua davis's
http://flashtothecore.praystation.com/21.html
ive been going thru his book flash to the core. with this particular movie ive been trying to figure out how to get different content into the arrays. i see the array is based on a mc (section) that we have linked to the content mc thats on the stage. what im a bit confused about is how to add content to the different sections... do i make new movie clips with the array instance names? ex a mc named "section_01" etc...
id appreciate any feedback, thanks alot.
heres the code for attatching the sections. I changed the array as i have more sections.
løk
// create an array for attaching new sections on our timeline
section = new Array(7);
max = _root.section.length;
itemDepth = 1;
for (i=0; i<max; i++) {
// attach new item
_root.content_mc.attachMovie("section", "section_"+i, itemDepth);
curItem = content_mc["section_"+i];
// put the MC in an array
_root.section[i] = curItem;
if (i == 0) {
curItem._x = 0;
} else {
curItem._x = content_mc._width+1;
}
itemDepth++;
}
*edit for some reason a piece of the for loop wont display in this message...