Ver Mensaje Individual
  #14 (permalink)  
Antiguo 06/10/2010, 19:10
Avatar de mortiprogramador
mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 14 años, 8 meses
Puntos: 214
Respuesta: pasar variable

Cita:
Iniciado por juan_14nob Ver Mensaje
y como haria eso??
que, explicar el fla?? pues diciendo las capas que tiene,
los mc que tiene, en donde se encuentra c/u, etc

si vamos a la función se podría hacer así


Código actionscript:
Ver original
  1. bt1.onPress=function(){
  2.     mcamover.gotoAndStop(1);
  3. }
  4.  
  5.  
  6. bt2.onPress=function(){
  7.     mcamover.gotoAndStop(2);
  8. }

o así


Código actionscript:
Ver original
  1. function mover(mov:Number):Void{
  2.     mcamover.gotoAndStop(mov);
  3. }
  4.  
  5. bt1.onPress = function(){
  6. mover(1);
  7. };
  8. bt2.onPress = function(){
  9. mover(2);
  10. };

por ej
saludos
__________________
"Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com