Something
public text v1 · immutableonClipEvent (load) {
for (i = 0; i < _root.totalFotos; i++) {
this.createEmptyMovieClip("th" + i + ".jpg");
var pp = createEmptyMovieClip("preload" + i, i + 100);
pp.id = i;
pp.onEnterFrame = function() {
if (this._parent["th" + this.id]._width > 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
anterior = i - 1;
this["th" + i]._x = this["th" + anterior]._x + this["th" + anterior]._width;
trace(this["th" + anterior]._x + " " + this["th" + anterior]._width);
}
}