Dynamic Images - Couple of q's

Howdy :smiley:

Ok so I’m working on a project at my job and things are going very well. The Flash application is 100% dynamic from text to text field colors, to panel colors, etc…

The back end runs off of ASP in case you’re curious.

Now we are up to the part where we have to load images into a panel. The images are uploaded by the user and the names are stored in a database. The panel should load 6 images at a time, 3 rows 2 columns.

Our ASP programmers aren’t 100% sure on how they should be sending me the images. I started toying around with some code, assuming I have an image count which they will provide.

Here’s what i have so far.


var menu = this.createEmptyMovieClip("menu", 99);
menu._x = menu._y=0;
for (var i = 0; i<6; i++) { // 6 would be something like imageNum
    var item = menu.createEmptyMovieClip("item"+i, i);
    item._x= i*150;
    item.attachMovie("mc", "mc", 1);
}

So as of now I have 6 panels going across my movie, which is fine, but now I need to columnize them into 3 rows 2 columns.

So that’s my concern as of now. Later on I will need to figure out how to say ā€œif there are 6+ images have next and previous buttons to load the next onesā€. So if anyone has any good links on that it would be cool.

Thanks yall
Dave