Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/05/2006, 13:50
larry17
 
Fecha de Ingreso: mayo-2006
Mensajes: 5
Antigüedad: 17 años, 10 meses
Puntos: 0
problema cargando botones

hola, me gustaria que alguien me dijese pq no funciona el boton.

btn_txt1.onPress = function() {
this.attachMovie("imgBtn", "imgBtn", this.getNextHighestDepth());
this["imgBtn"]._x = 20;
this["imgBtn"]._y = 20;
}
;
imgBtn.onPress= function () {
gotoAndStop("mapa")
}
;
carga el boton en la pantalla pero no hace nada.
en realidad el codigo tiene una variable, es asi:


btn_txt1.onPress = function() {
this.attachMovie("imgBtn", "imgBtn"+i, this.getNextHighestDepth());
this["imgBtn"+i]._x = 20;
this["imgBtn"+i]._y = 20;
}
;
lo que pasa esque no se como es el formato correcto para sumarle i a imgBtn en lo siguiente, por eso primero estoy intentandolo sin la variable.
imgBtn.onPress= function () {
gotoAndStop("mapa")
}
;

saludos