Originariamente inviato da mikeTT
...
... e c'hai creato pure l'utente nuovo perche' sai benissimo che sei in torto, vero ???
Complimenti, il decompilatore pero' non ha funzionato bene, ci sono dei problemi in beginFill e qualcos altro.
Questo tuo post e' la dimostrazione e la conferma del motivo che mi ha portato a NON POSTARE la mia prototype.
Comunque, senza decompilatore, sei ridicolo, quindi buon lavoro e felice carriera
codice:
MovieClip.prototype.imageStretcher = function( path, velocity, stretch ) {
// andr3a 28 / 01 / 2004 [ www.3site.it ]
this.depthRemember = Math.round( Math.random() * 1000000 );
this.scaleFactor = stretch == undefined ? 40 : stretch;
this.stretchScroller = 0;
var stretched = "stretched" + this.depthRemember;
this.duplicateMovieClip( stretched, this.depthRemember++ );
path[stretched]._xscale = 100 * this.scaleFactor;
var masker = "masker" + this.depthRemember;
this.createEmptyMovieClip( masker, this.depthRemember++ );
with( this[masker] ) {
lineStyle( 0, 0xababab );
moveTo( path[this]._x, path[this]._y );
beginFill( 0xababab, 100 );
lineTo( this._width, path[this]._y );
lineTo( this._width, path[this]._height );
lineTo( path[this]._x, path[this]._height );
lineTo( path[this]._x, path[this]._y );
endfill();
}
path[stretched].setMask( this[masker] );
var oldwidth = this[masker]._width;
if( velocity == undefined ) {
velocity = 1.2;
}
this.onEnterFrame = function() {
if( this.stretchScroller < this._width ) {
this[masker]._x = this.stretchScroller;
this[masker]._width = oldwidth - this.stretchScroller;
path[stretched]._x = this._x + this.stretchScroller - ( this.stretchScroller * this.scaleFactor );
this.stretchScroller += velocity;
}
else {
delete this.onEnterFrame;
path[stretched].removeMovieClip();
this[masker].removeMovieClip();
}
}
}