Цитата:
|
Сообщение от Antares
Может, прежде чем обращаться к загружаемому, надо отследить процесс загрузки? Я не увидил отслеживания в твоем коде.
|
Я ж написал - это кусок кода

Код:
count = 0;
num = -1;
act = 0;
itms = ["1.swf","2.swf","3.swf","4.swf"];
_root.createEmptyMovieClip("container", 0);
function preload(num) {
container.createEmptyMovieClip("img", 0);
this.attachMovie("line", "line", 100);
line._x = 500;
line._y = 245;
line.bar._xscale = 0;
if (num != numb) {
container.img.loadMovie(imts[num]);
numb = num;
this.onEnterFrame = function() {
var l = container.img.getBytesLoaded();
var t = container.img.getBytesTotal();
prc = (l/t)*100;
line._ball._alpha = prc;
line.txt = int(prc)+" %";
if (l && t && l>=t) {
line.removeMovieClip();
this.onEnterFrame = null;
container.fadeIn();
}
};
}
}
MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
this._x = 366;
this._y = 151;
this._alpha<100 ? (this._alpha += 10, act=true) : (this._alpha=100, delete this.onEnterFrame, act=false);
};
};
function fadeOut() {
this.onEnterFrame = function() {
container._alpha>0 ? (container._alpha -= 10, act=true) : (delete this.onEnterFrame, act=false, removeMovieClip(img), preload(num));
};
}
fadeOut();
ты про это?