Ma poi mi dai lo stipendio???Originariamente inviato da siltag
Bello, grazie a me funziona..l'immagine deve essere circa 200x150
Non è che mi daresti anche l'effetto a quadrati??
Grazie![]()
Scherzo
Sul frame
Fai un mc 680 * 175 e istanzialo foto altrimenti devi cambiare dei parametri se le dimensioni sono diversecodice:foto._visible = 0; MovieClip.prototype.move = function(targetRot, targetXsc, targetYsc, targetX, targetY) { this._rotation += (targetRot-this._rotation)/4; this._xscale += (targetXsc-this._xscale)/4; this._yscale += (targetYsc-this._yscale)/4; this._x += (targetX-this._x)/4; this._y += (targetY-this._y)/4; if ( Math.round(this._x) == this.__oldx && Math.round(this._y) == this.__oldy && Math.round(this._xscale) == this.__oldsx && Math.round(this._yscale) == this.__oldsy && Math.round(this._rotation) == this.__oldr && this.onEnterFrame != undefined ) { this._rotation = targetRot; this._x = targetX; this._y = targetY; this._xscale = targetXsc; this._yscale = targetYsc; delete this.onEnterFrame; } else { this.__oldr = Math.round(this._rotation); this.__oldx = Math.round(this._x); this.__oldy = Math.round(this._y); this.__oldsx = Math.round(this._xscale); this.__oldsy = Math.round(this._yscale); } }; _root.attachMovie("IDmaschera", "maschera", 100); _root.maschera.rettangolo._visible = 0; _root.maschera._x = 550; _root.maschera._y = 70; j = 0; for (i=1; i<=50; i++) { duplicateMovieClip(_root.maschera.rettangolo, "rettangolo"+i, i); //trace("rettangolo"+i); _root.maschera["rettangolo"+i].targetX = (1/2*foto._width)-(1/2*maschera._width)-(j*maschera._width); j++; if (i/10 == Math.round(i/10)) { j = 0; } _root.maschera["rettangolo"+i].targetY = (-1/2*foto._height)+(1/2*maschera._height)+(Math.floor((i-1)/10)*maschera._height); _root.maschera["rettangolo"+i]._xscale = 1; _root.maschera["rettangolo"+i]._yscale = 1; _root.maschera["rettangolo"+i]._rotation = -170; _root.maschera["rettangolo"+i].rit = 50*i; t0 = getTimer(); _root.maschera["rettangolo"+i].onEnterFrame = function() { if (getTimer()-t0>=this.rit) { this.move(180, 100, 100, this.targetX, this.targetY); _root.foto.setMask(maschera); foto._visible = 1; _root.maschera.rettangolo._xscale = 1; _root.maschera.rettangolo._yscale = 1; } }; }
disegna un rettangolo 80 * 60 F8 movie clip che chiamerai rettangolo che setterai alpha= 0.
Poi il movie clip rettangolo lo metti in un altro clip che chiamerai maschera.
nè il clip maschera nè qllo rettangolo devono stare sullo stage ma devono essere in libreria e avere un concatenamento col nome
IDmaschera
Per concatenare un clip da libreria selezioni il clip maschera dalla libreria tasto destro
concatenamento o in inglese linkage, esporta per action script e inserisci il nome IDmaschera
Il gioco è fatto![]()

Rispondi quotando