all'interno del movieClip crea un altro movieClip (e lo chiami ad esempio mcInterno).
Quindi carichi il file esterno in questo movieClip.
Una volta caricato sposti il movieClip interno al centro in questo modo:
l'effetto ovviamente va associato al movieClip mccodice:mc.mcInterno._x = -(Math.round(mc.mcInterno._width/2)); mc.mcInterno._y = -(Math.round(mc.mcInterno._height/2));
na cosa del genere:
io sullo stage ho un movieClip chiamatocodice:function carica() { car = mc.mcInterno.getBytesLoaded(); tot = mc.mcInterno.getBytesTotal(); if (car>1024 && car == tot) { clearInterval(a); mc.acc = 3.0; mc.ine = 1.5; mc.mcInterno._x = -(Math.round(mc.mcInterno._width/2)); mc.mcInterno._y = -(Math.round(mc.mcInterno._height/2)); mc._xscale = mc._yscale=1; mc.endw = 200; mc.endh = 200; mc._alpha = 100; mc.onEnterFrame = function() { this.dw = (this.dw+(this.endw-this._width)/this.acc)/this.ine; this.dh = (this.dh+(this.endh-this._height)/this.acc)/this.ine; this._width += this.dw; this._height += this.dh; }; } } loadMovie("esterno.swf", mc.mcInterno); mc._alpha = 0; a = setInterval(carica,400);
mc
ed al suo interno appunto un movieClip chiamato mcInterno
in esterno.swf ho un immagine.
ps: questo script funziona solo per file con peso > di 1024 byte![]()

Rispondi quotando