Comunidad de diseño web y desarrollo en internet online

problemas con el boton fade in, fade out

Citar            
MensajeEscrito el 07 Oct 2005 09:06 pm
Hola a tod@s, soy nuevo en el foro y haber si me podeis echar una mano.
he aplicado el tutorial del boton fade in fade out en una web pero ahora tengo un problema.
en la escena principal tengo una instancia del clip de pelicula mc_todo, con lo cual no puedo hacer un ON RELEASE, GOTO... a un determinado fotograma.
y si se lo hago dentro del clip de pelicula mc_todo al boton btn_trans no consigo tampoco k vaya a un determinado fotograma de la escena principal, sino d dicho clip.
ayuda, por favor. gracias[/b]

Por justo

5 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 07 Oct 2005 09:25 pm
hola a todos soy novato en esteo del flash y tengo un problema con un boton fade in fade out, y para no abrir otro post lo coloco aqui ojala alguien lo vea y me ayude,

no soy muy experto en programacion al codigo que aparece en el tuto hay que hacerle alguna modificacion?
solo he tocado

mi animacion tiene 72 fotogramas en lugar de veinte como en el tuto asi que el codigo me quedo asi:

on (rollOver) {
mc_animado.onEnterFrame = function () {


if (this._currentframe != 72) {
this.nextFrame();
}


else {
this.stop();
delete this["onEnterFrame"];
} // end if
};
}


on (rollOut) {
mc_animado.onEnterFrame = function () {


if (this._currentframe != 2) {
this.prevFrame();
}


else {
this.stop();
delete this["onEnterFrame"];
} // end if
};

}

pero no funciona tal vez he omitido algo

gracias de antemano por su colaboracion

Por mythos

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 08 Oct 2005 01:31 am
seguro que tienes 72, bueno no importa cambia esto:

Código :

 if (this._currentframe != 72) {


por

Código :

 if (this._currentframe != this._totalframes) {


saludos

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox
Citar            
MensajeEscrito el 08 Oct 2005 02:26 am
gracias siddharta, gracias _root, problema resuelto.

Por justo

5 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 08 Oct 2005 04:37 am
hola mythos y justo!

bienvenidos!

justo, que bueno q te se soluciono lo tuyo.

mythos, lo que te dice maikel te ayudara.

La otra cosa q noto es q en vez de 1 tienes 2 en:

Código :

 if (this._currentframe != 2) {
this.prevFrame();
} 


y en el tuto se pone al frame 1, pues es en el que qdará a final de cuentas, pero ahi ya depende de lo q necesites o kieras lograr.

Sería bueno q subieras el swf de tu boton aki en el foro para ver q es lo que le sucede (subirlo a tu servidor y linkearlo aki con la etiketa flash).

El boton no hace absolutamente nada?

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox
Citar            
MensajeEscrito el 08 Oct 2005 02:16 pm

Por mythos

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 08 Oct 2005 02:44 pm
mythos, acabo de checar tu swf q hiciste en base al tutorial...tienes un pekeño pero MUY significativo problema:

te falta asignar el nombre de instancia a tu "mc_animado" solo eso, pruebalo y veras.

saludos

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox

 

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