Comunidad de diseño web y desarrollo en internet online

Problema con script!!!!!

Citar            
MensajeEscrito el 25 Ene 2005 01:47 am
Hola, tengo un fla en donde se ve una galeria de fotos; las imágenes van viendose a medida k arrastras el raton hacia la derecha, pero va muy deprisa y me gustaria cambiar la velocidad.
El codigo k hay es el siguiente:

onClipEvent (load) {
widthStrip = strip1._width;
rightLimit = _root.rightMarker._x;
leftLimit = _root.leftMarker._x;
widthscreen = rightLimit-leftLimit;
center = (.5*widthscreen)+leftLimit;
_x = center;
duplicatesNeeded = (widthscreen/(2*widthStrip))+1;
for (i=1; i<=duplicatesNeeded; i++) {
dupR = 2*i;
dupL = (2*i)+1;
duplicateMovieClip(strip1, "strip"+dupR, dupR);
setProperty("strip"+dupR, _x, i*widthStrip);
duplicateMovieClip(strip1, "strip"+dupL, dupL);
setProperty("strip"+dupL, _x, i*-widthStrip);
}
}
onClipEvent (enterFrame) {
_x += (center-_root._xmouse)*.1;
if (_x>center+(widthStrip/2)) {
_x -= widthStrip;
} else if (_x<center-(widthStrip/2)) {
_x += widthStrip;
}
}


A ver si alguien se aclara con esto!!!! (soy novatilla...)

:cry: Monikaneka

Por Monikaneka

38 de clabLevel



 

msie
Citar            
MensajeEscrito el 25 Ene 2005 08:50 am
Yo supongo que debe ser esta línea...

Código :

 _x += (center-_root._xmouse)*.1; 


Quizá si le cambias el 0.1 y le pones un 0.5 te funcione mejor.

Saludos!! ^^

Por Elecash

Claber

8126 de clabLevel

37 tutoriales
19 articulos
13 ejemplos

  Bastard Operators From Hell Desarrollador de GAIA Premio_Secretos Héroes

BarnaCity

clabbrowser
Citar            
MensajeEscrito el 25 Ene 2005 07:56 pm
muchas gracias, lo provare enseguida!!!!

Por Monikaneka

38 de clabLevel



 

msie

 

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