exactly? i want to align about 15 different sized pictured loaded with code:
for (i=0; i<87; i++) {
_root.group.createEmptyMovieClip(i, i);
loadMovie(picArray*, i);
setProperty(i, _x, 125*i);
setProperty(i, _y, 0);
}
pictures are good aligned by width because their width is the same. But aligment by height is wrong because it on the top of pic and i want align them on the middle. how can do I this?
You could try something like this, I’m not sure if this would be the best way though.
[AS]clips = [];
for (i=0; i<87; i++) {
clips* = group.createEmptyMovieClip(“pic”+i, i);
clips*.loadMovie(picArray*);
clips*._x = 125i;
}
group.createEmptyMovieClip(“preloader”, 9876);
// change this value to whatever you need
group.preloader.ycenter = 100;
group.preloader.onEnterFrame = function() {
if (clips.length) {
for (i=0; i<clips.length; i++) {
if (clips._width) {
clips*._y = this.ycenter-clips*._height/2;
clips.splice(i, 1);
}
}
} else {
this.removeMovieClip();
}
};[/AS]
:-\