gracias xavi, probar� tu c�digo, de momento lo he solucionado partiendo 
de un ejemplo de kadazuro, te lo pongo por si te puede servir para algo.

<code>
CustomPais = function(clip,targetLevel,continente){ 
  this.clip = clip;
  this.clip.targetLevel = targetLevel;
  this.clip.continente = continente;
  this.clip.name = clip._name;
  this.clip.onRollOver = this.customRollOver; 
  this.clip.onRollOut = this.customRollOut; 
  this.clip.onRelease = this.customRelease; 
} 

CustomPais.prototype.customRollOver = function (){
        valor = eval("valores_" add this.name)[j];
        regionIn(valor,eval("nombre_" add this.name));
}
 
CustomPais.prototype.customRollOut = function (){ 
  regionOut();
}

CustomPais.prototype.customRelease = function (){
        regionOut();
        regionPulsadaAnima(this.continente);
}
</code>

despu�s, mediante un bucle voy asignando los pa�ses a CustomPais, 

en todo caso la llamada para cada uno ser�a:

<code>
btn1 = bew CustomPais(espana, this, "europa");
</code>

gracias de nuevo y saludos



<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->

Responder a