STRANISSIMO..
provate a cliccare sito in costruzione , poi cliccate su
CUCINE ed infine su
BORGO ANTICO
guardate cosa succede sul loop di immagini, la prima volta, al primo giro vengono caricate all'estremita sinistra e superiore, poi funziona correttamente....
lo script è questo:
ALLEGO ANCHE IL FILE
FILE FLA
stop();
spacing = 10;
_root.c.c.containerMC._alpha = 0;
MovieClip.prototype.loadPic = function(pic){
_root.c.c.containerMC._alpha = 0;
this.loadMovie(pic);
_root.onEnterFrame = function(){
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
if (t != 0 && Math.round(l/t) == 1){
var w = containerMC._width + spacing, h = containerMC._height + spacing;
border.resizeMe(w, h);
delete _root.onEnterFrame;
}
}
};
MovieClip.prototype.resizeMe = function(w, h){
var speed = 5;
this.onEnterFrame = function(){
this._width += (w - this._width)/speed;
this._height += (h - this._height)/speed;
if( Math.abs(this._width-w)<1){
this._width = w;
this._height = h;
_root.c.c.containerMC._x = this._x - this._width/2 + spacing/2;
_root.c.c.containerMC._y = this._y - this._height/2 + spacing/2;
_root.c.c.containerMC._alpha = 100;
delete this.onEnterFrame;
}
}
};