
Код:
function callThumbs() {
createEmptyMovieClip("container_mc",getNextHighestDepth());
container_mc._x = 100;
container_mc._y = 540;
var clipLoader = new MovieClipLoader();
var preloader = new Object();
clipLoader.addListener(preloader);
preloader.onLoadStart = function() {
createTextField("my_txt",getNextHighestDepth(),400,300,100,20);
my_txt.selectable = false;
};
preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
my_txt.text = "загрузка - "+Math.floor((loadedBytes/totalBytes)*100)+"%";
};
for (i=0; i<g; i++) {
myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());
myThumb_mc._x = 101*i;
myTrumb_mc.i = i;
clipLoader.loadClip("trumbs/"+art1[i]+".jpg",myThumb_mc);
preloader.onLoadComplete = function(target) {
my_txt.removeTextField();
firstImage();
createMask();
scrolling();
target.onRelease = function() {
komp._visible = false;
over(this._name);
};
target.onRollOver = function() {
this._alpha = 70;
};
target.onRollOut = function() {
this._alpha = 100;
};
};
}
}
вот такой код сейчас работает, но тут art1[i] - это массив спарсеный из xml
не грузит совсем.