Hi all, I have a gallery with thumbnails that are dynamically loaded into Flash via XML. The thumbnails are all of the same size and placed at defined positions. Now I’m trying to use thumbnails of the same width but with different heights, and I’d like to place them one to each other, so without any space in between.
Can anybody give a hint how I can formulate this in Actionscript:
- Position thumb 1 at x0 / y0
for (var i = 0; i<tArray.length; i++) {
var thb = th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);
thb.id = 0;
thb._x = i%3*50;
thb._y = Math.floor(i/3)*50; }
And then
- position thumb 2 at x0 / y(thumb1._height)
- position thumb 3 at x0 / y(thumb1._height + thumb2._height)
- position thumb 4 at x0 / y(thumb1._height + thumb2._height + thumb3._height)
I hope you can help me out…
Thanks,
B