Comunidad de diseño web y desarrollo en internet online

COMO PUEDO CRAR UN VINCULO AUN BOTON?

Citar            
MensajeEscrito el 26 Mar 2008 07:38 pm
HABER SI ME EXPLICO, SOY NUEVO EN ESTO
Y NECESITO HACER UN VINCULO A UN BOTON QUE ME LLEVE A OTRA ESCENA, NO A UNA PAG WEB O ALGO ASI, EJEMPLO:

HAY VARIOS BOTONES, 1.-CHEBROLET, 2.-FORD, .-HIUNDAI, ETC...
EN FIN, CUANDO PINCHE UNO DE ESTOS BOTONES, QUIERO QUE ME LLEVE A UNA LISTA DE MODELOS
ME EXPLICO, QUE SI PINCHO CHEBROLET ME SALGAN UNA LISTO DE MOEDELOS QUE ADEMAS TAMBIEN SON BOTONES....

DE ANTE MANOS GRAX!

Por bHUANA

0 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 27 Mar 2008 06:44 pm
Já, algo complicado para escribir, peor se te entiende xD, lo uqe creo necesitas es utilizar diversos swfs y enlazarlos al principal; por ejemplo.

Tienes el archivo index.swf y otros 5 archivos llamados toyota.swf, hiundao.swf, ford.swf, chevrolet.swf y mercedes.swf.

Dentro de Index.swf tienes 5 botones, el primer botón tendría este código:

OJO QUE ESTOY USANDO EL ACTIONSCRIPT 2!
---------------------------------------------------------------
on (release) {
loadMovieNum("toyota.swf", 1);
}
---------------------------------------------------------------
Estaacción indica que debe llamar al archivo toyota.swf que creamos antes.

el segundo botón tendría el mismo código, solo que en vez de "toyota.swf" sería "hiundai.swf"
---------------------------------------------------------------
on (release) {
loadMovieNum("hiundai.swf", 1);
}
---------------------------------------------------------------
Y así con todos.

Entocnes, suponiendo que los otros archivos (toyota.swf, hiundai.swf, ford.swf, chevrolet.swf y mercedes.swf) ya están con su contenido respectivo, solo queda probar la pelicula index.swf para que veas el resultado :)

Si necesitas ayuda más especíofica no dudes en pedirme que sea más especifico.

Por DMVA

Claber

101 de clabLevel



Genero:Masculino  

Desarrollador Multimedia

firefox
Citar            
MensajeEscrito el 27 Mar 2008 08:25 pm

DMVA escribió:



OJO QUE ESTOY USANDO EL ACTIONSCRIPT 2!
---------------------------------------------------------------
on (release) {
loadMovieNum("toyota.swf", 1);
}
---------------------------------------------------------------


:roll: Eso no es actionscript 2

en todo caso esto seria :

Código :

miBoton.onRelease=function(){
        loadMovieNum("toyota.swf", 1);
}

Por flashreloco

Claber

1310 de clabLevel

1 tutorial
1 articulo

Genero:Masculino  

Webdesigner & Mandilon 2.0

firefox
Citar            
MensajeEscrito el 28 Mar 2008 12:23 am
mas practico:

Código :

var vinculos:Array = new Array("chevrolet", "hiundai", "ford", "renault");
for(var i:Number = 0; i <= vinculos.length; i++){
  this["btn_"+vinculo[i]].onRelease = function (){
    loadMovieNum(vinculos[i]+".swf", i);
  };
};

*nota: cada boton debe estar instanciado como "btn_chevrolet", btn_hiundai", etc..

Por penHolder

Claber

4661 de clabLevel

39 tutoriales
2 articulos

Genero:Masculino   Premio_Secretos

| mdz |

firefox
Citar            
MensajeEscrito el 28 Mar 2008 02:29 pm

bHUANA escribió:

HABER SI ME EXPLICO, SOY NUEVO EN ESTO
Y NECESITO HACER UN VINCULO A UN BOTON QUE ME LLEVE A OTRA ESCENA, NO A UNA PAG WEB O ALGO ASI, EJEMPLO:

HAY VARIOS BOTONES, 1.-CHEBROLET, 2.-FORD, .-HIUNDAI, ETC...
EN FIN, CUANDO PINCHE UNO DE ESTOS BOTONES, QUIERO QUE ME LLEVE A UNA LISTA DE MODELOS
ME EXPLICO, QUE SI PINCHO CHEBROLET ME SALGAN UNA LISTO DE MOEDELOS QUE ADEMAS TAMBIEN SON BOTONES....

DE ANTE MANOS GRAX!

Lo que también necesitas es leer las reglas del foro ^^
Ya que piden no postear en mayúsculas.

Las letras MAYÚSCULAS se pueden usar para sustituir acentos o para enfatizar, pero NO escriba todo en mayúsculas pues esto se interpreta en la red como que ¡USTED ESTA GRITANDO!

(y)

Por Nito

790 de clabLevel



 

Transformado en 100111101000011

firefox
Citar            
MensajeEscrito el 31 Mar 2008 02:30 am
maestro si estas usando action script 2.0 usa el comando gotoAndPlay y pone la escena y el numero de fotograma q keres ke reprodusca...
x Ej:

editando el simbolo de boton:

on(press) {
gotoAndPlay("Chevrolet", 1);
}

Por crilancelo

16 de clabLevel



Genero:Masculino  

firefox

 

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