Scusate il ritardo ma sono stata molto presa dal lavoro..
Ho trovato questi altri codici!
stop();
_root.mov.thumbs.carry.setMask(_root.mov.thumbs.mask);
var kepXmax = _root.mov.previewload._width;
var kepYmax = _root.mov.previewload._height;
var kezdoX = _root.mov.previewload._x;
var kezdoY = _root.mov.previewload._y;
var keret_val:Number = 1;
//border thickness
_root.mov.previewload._alpha = 0;
_root.mov.keret._alpha = 0;
_root.mov.keret._width = 0;
_root.mov.keret._height = 0;
function kozepre() {
_root.mov.previewload._x = kezdoX+(kepXmax-_root.mov.previewload._width)/2;
_root.mov.previewload._y = kezdoY+(kepYmax-_root.mov.previewload._height)/2;
_root.mov.keret._x = kezdoX+(kepXmax-_root.mov.keret._width)/2;
_root.mov.keret._y = kezdoY+(kepYmax-_root.mov.keret._height)/2;
_root.mov.preloader._x = kezdoX+(kepXmax-_root.mov.preloader._width)/2;
_root.mov.preloader._y = kezdoY+(kepYmax-_root.mov.preloader._height)/2;
}
MovieClip.prototype.loadPic = function(pic) {
_root.mov.previewload._alpha = 0;
this.loadMovie(pic);
_root.mov.onEnterFrame = function() {
var t = _root.mov.previewload.getBytesTotal(), l = _root.mov.previewload.getBytesLoaded();
if (t != 0 && (l/t) == 1) {
var w = _root.mov.previewload._width+keret_val, h = _root.mov.previewload._height+keret_val;
kozepre();
_root.mov.keret.resizeMe(w, h);
if (_root.mov.previewload._alpha<100 && done) {
_root.mov.keret._alpha = 100;
_root.mov.previewload._alpha += 3;
}
}
done = false;
};
};
MovieClip.prototype.resizeMe = function(w, h) {
var speed = 2;
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;
kozepre();
done = true;
if (scrolling == "up" && _root.mov.thumbs.carry._y>_global.scr && _global.count>4) {
_root.mov.thumbs.carry._y = _root.mov.thumbs.carry._y-108;
} else if (scrolling == "down" && _root.mov.thumbs.carry._y<10 && _global.count>4) {
_root.mov.thumbs.carry._y = _root.mov.thumbs.carry._y+108;
}
// _parent.aaa_bbb_ccc.text=_root.mov.thumbs.carry._y+' - '+_global.scr;
delete this.onEnterFrame;
}
};
};