Comunidad de diseño web y desarrollo en internet online

problemas con el maldito scroll, ayudaa

Citar            
MensajeEscrito el 22 Oct 2006 12:56 pm
hola a todosa ver si podeis ayudarme, quiero hacer un scroll a un clip de pelicula, al boton de bajada le e puesto esto:

on (press) {
if (this.texto._currentframe<this.texto._totalframes) {
this.texto.play();
}
}
on (release) {
this.texto.stop();
}

y me va genial pero el de subida no me funciona, le cambie el < por > y nada, me an dado ideas pero no me funciona ninguna, algien podria echarme una mano por favor.
gracias y asta otra.

Por tuky

10 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 22 Oct 2006 03:17 pm
mmm un scroll con solo animaciones

Código :

on (press) {
this.onEnterFrame = function(){
this.texto.gotoAndStop((this._currentframe - 1));
if(this._currentframe==1){
delete this.onEnterFrame();
}
}
}
on (release) {
delete this.onEnterFrame();
}
on (dragOut) {
delete this.onEnterFrame();
}


debe funcionar, pero no se bien como es el tema de las rutas de los objetos.

Saludos :D

Por flasher

Invitado



 

firefox
Citar            
MensajeEscrito el 22 Oct 2006 06:13 pm
Tu habías puesto:

Código :

on (press) {
if (this.texto._currentframe<this.texto._totalframes) {
this.texto.play();
}
}
on (release) {
this.texto.stop();
}

Y entonces, en el de arriba pusiste:

Código :

on (press) {
if (this.texto._currentframe>this.texto._totalframes) {
this.texto.play();
}
}
on (release) {
this.texto.stop();
}

Pues has hecho mal. El fallo está en
if (this.texto._currentframe>this.texto._totalframes) {

Debes poner:

Código :

on (press) {
if (this.texto._currentframe>1) {
this.texto.play();
}
}
on (release) {
this.texto.stop();
}

Ahora debería funcionar.

Por nestorrente

1010 de clabLevel

10 tutoriales

 

Vigo

firefox
Citar            
MensajeEscrito el 23 Oct 2006 06:25 pm
gracias a todos, pero no me funcionan ninguna de las dos:
en la solucion de flasher no se me mueve, y en la de nestorrente me vuelve al primer fotograma de la animacion y ay se queda, pero mil gracias a los dos espero encontrar pronto la solucion.

graciassss

Por tuky

10 de clabLevel



Genero:Masculino  

msie

 

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