Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/07/2006, 23:02
guest150783
 
Fecha de Ingreso: enero-2005
Ubicación: culiacan, sinaloa, mexico
Mensajes: 97
Antigüedad: 19 años, 3 meses
Puntos: 0
for (i=1; i<=18; i++) {
var tempMenu:MovieClip = this["menu"+i+"_mc"];
tempMenu.numero_txt.text = i;
tempMenu.id = i;
tempMenu.titulo_txt.text = menu_array[i-1];
tempMenu.onPress = function() {
var tempNumber:String = this._name;
if (this.id<9) {
tempNumber = tempNumber.slice(4, 5);
} else {
tempNumber = tempNumber.slice(4, 6);
}
trace(this.id);
trace(tempNumber);
subMenu(tempNumber);
this._parent.desplegado = false;
};
}


hermano, ahi esta la solucion, "again", solo le agregue un id a cada boton para identificarlo, ahora si su id era menor a 10 toma un solo dijito, si era mayor toma dos digitos. P.D. podrias evitarte hacer todo ese show del menu con algo mas sencillo, pero yo solo me digno a contestar las dudas.