No, cosi' non va.
codice:
this.onRelease = function() {
trace("MouseUP "+this);
trace("Showiging "+this.index);
_root.mainImg.loadMovie(file[this.index]);
_root.mainImg._visible = false;
this.createEmptyMovieClip("loadBig",1);
this.loadBig.onEnterFrame = function() {
car = _root.mainImg.getBytesLoaded();
tot = _root.mainImg.getBytesTotal();
if(car==tot && car>24)
trace("loading...");
else
{
_root.mainImg._width = 400;
_root.mainImg._height = 300;
_root.mainImg._x = bigX;
_root.mainImg._y = bigY;
_root.mainImg._visible = true;
delete this.onEnterFrame;
}
}
};
Mentre cosi' va:
codice:
this.onRelease = function() {
trace("MouseUP "+this);
trace("Showiging "+this.index);
_root.mainImg.loadMovie(file[this.index]);
_root.mainImg._visible = false;
this.createEmptyMovieClip("loadBig",1);
this.loadBig.onEnterFrame = function() {
if(_root.mainImg.getBytesLoaded()<_root.mainImg.getBytesTotal())
trace("loading...");
else
{
_root.mainImg._width = 400;
_root.mainImg._height = 300;
_root.mainImg._x = bigX;
_root.mainImg._y = bigY;
_root.mainImg._visible = true;
delete this.onEnterFrame;
}
}
};