Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/01/2004, 07:47
algernon
 
Fecha de Ingreso: febrero-2003
Mensajes: 15
Antigüedad: 21 años, 2 meses
Puntos: 0
btnA.onRelease = function(){
fx(this._name);
}

btnB.onRelease = function(){
fx(this._name);
}

function fx(elNombre){
trace('fui ejecutada por:' +elNombre);
}

Lo que haces es enviar a la función fx() el nombre de instancia del botón.