Comunidad de diseño web y desarrollo en internet online

Problemas Efecto Zoom y carga de peliculas externas

Citar            
MensajeEscrito el 07 Jun 2007 06:19 pm
Hola, he probado el efecto zoom: http://www.cristalab.com/tips/40378/efecto-de-zoom-acercamiento--a-un-objeto-con-actionscript que hace un par de dias estaba en la pag. principal y funciona perfectamente, pero mi problema es que yo lo aplico dentro de una pelicula que cargo previamente en la pelicula principal y ay ya no funciona... e probado con poner _root.pelis. siendo pelis el nombre del mc donde cargo la pelicula que tiene el efecto zoom pero nada no funciona... alguien me echa un cable???

Por JotaeRe

96 de clabLevel



 

msie7
Citar            
MensajeEscrito el 08 Jun 2007 11:21 am
Pongo el codigo para que quede mas claro... siendo el mc mapa el que va a tener el efecto zoom

Código :

incremento = 2;
function zoom(x,y,ancho,alto, aceleracion) {
mapa.onEnterFrame = function() {
this._x += (x-this._x)/aceleracion;
this._y += (y-this._y)/aceleracion;
this._width += (ancho-this._width)/aceleracion;
this._height+= (alto-this._height)/aceleracion;
if (Math.abs(x-this._x)<0.5 && Math.abs(y-this._y)<0.5 && Math.abs(ancho-this._width)<0.5 && Math.abs(alto-this._height)<0.5) {
this._x = x;
this._y = y;
this._width = ancho;
this._height = alto;
delete this.onEnterFrame;
}
};
};
onMouseDown =function(){
if (mapa.hitTest(_xmouse,_ymouse)){
Alto = incremento*mapa._height;
Ancho = incremento*mapa._width;
x = _xmouse-((_xmouse-mapa._x) * incremento);
y= _ymouse-((_ymouse-mapa._y) * incremento);
zoom(x,y,Ancho,Alto,3);
}
};

Por JotaeRe

96 de clabLevel



 

msie7

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.