Comunidad de diseño web y desarrollo en internet online

Problema en un mapa en flash

Citar            
MensajeEscrito el 22 Ago 2007 12:52 am
que tal a todos?

bien tengo un problema con el startDrag() de una pelicula, el clip se queda pegado al raton solo ocasionalmente, pero el startDrag lo uso con mousedown, para arrastar el mapa, el ejemplo lo pueden ver er :http://altosdefiesta.com/php/modules.php?name=TourMapa

PD: solo se traba cuando se cambia de ventana, o algo asi, espero que puedan ayudarme y de Ante Mano GRACIAS por su tiempo

y Muy buena web, gracias a esta web pude hacer mi mapa e ir aprendiendo poco a poco flash 8 y actionscript

Por javibenjas

1 de clabLevel



 

msie7
Citar            
MensajeEscrito el 22 Ago 2007 01:04 am
proba haciendo que al soltar el boton del mouse , o al soltar fuera de el, haga un stopDrag
un ej de esto seria

Código :

mc.onPress = function(){
   startDrag(mc,true);
}
mc.onRelease = function(){
   mc.stopDrag();   
}

Por Benutti

188 de clabLevel

1 tutorial

 

NutT

msie
Citar            
MensajeEscrito el 22 Ago 2007 02:20 am
mm no puesto me da problemas con lo demas de codigo

onClipEvent(enterFrame){
incremento = 1.4;
decremento = .7;
function zoom(x,y,ancho,alto) {
this.onEnterFrame = function() {
this._x = x;
this._y = y;
this._width = ancho;
this._height = alto;
delete this.onEnterFrame;
};
};
function alejar(x,y,ancho,alto) {
if(this._width <= "120") {
} else {
this.onEnterFrame = function() {
this._x = x;
this._y = y;
this._width = ancho;
this._height = alto;
delete this.onEnterFrame;
}
};
};


if (Key.isDown(38)){
Alto = incremento*this._height;
Ancho = incremento*this._width;
x = _root._xmouse-((_root._xmouse-this._x) * incremento);
y = _root._ymouse-((_root._ymouse-this._y) * incremento);
zoom(x,y,Ancho,Alto);

}

if (Key.isDown(40)){
Alto = decremento*this._height;
Ancho = decremento*this._width;
x = _root._xmouse-((_root._xmouse-this._x) * decremento);
y = _root._ymouse-((_root._ymouse-this._y) * decremento);
alejar(x,y,Ancho,Alto);

}

}

onClipEvent (mouseDown) {
_root.mapa.startDrag();
}
onClipEvent (mouseUp) {
_root.mapa.stopDrag();
}

no me jala ese codigo, no se por que, no se mueve el mapa

Por javibenjas

1 de clabLevel



 

msie7
Citar            
MensajeEscrito el 20 Sep 2007 03:51 pm
Parece que los has solucionado. De todos modos, por si a alguién más le interesa, el codigo que le había dado Bennuti lo debia poner en la pelicula i no en el fotograma.

Yo tengo una aplicación parecida de mapas. Pueden ver ejemplos en:
Mapa de Girona, Figueres, Roses, La Bisbal

Por isuny000

129 de clabLevel

1 tutorial

Genero:Masculino  

Girona provincia

firefox

 

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