Ciao a tutti,
come creo un'ombra che segue un movie clip particolare.
Il clip contiene questo codice :
onClipEvent (enterFrame) {
if (vai) {
w = Number(_global.arrayW[_root.num])+20;
h = Number(_global.arrayH[_root.num])+20;
if (!dw) {
if (_width != w) {
_width += (w-_width)/6;
}
if (Math.round(Math.abs((w-_width)/2.5)) == 0) {
dw = 1;
}
}
if (!dh) {
if (_height != h) {
_height += (h-_height)/4;
}
if (Math.round(Math.abs((h-_height)/2.5)) == 0) {
dh = 1;
a = false;
}
}
if (dw && dh) {
if (!a) {
_root.cont._alpha = 0;
_root.cont._visible = 1;
_root.preloader._visible = 0;
_root.cont._x = this._x+((this.width/2)-_root.cont._width/2);
_root.cont._y = this._y+((this.height/2)-_root.cont._height/2);
a = true;
}
}
}
}
onClipEvent (load) {
_root.num = 0;
}
Questo clip e un quadrato che si apre e assume il formato della foto caricata.
Ciao grazie.