Hola, estoy intentando hacer un web completa en flash, y para evitar mucho lio con el tema del código me pasaron una función para no tener que repetir muchas veces el código on(release) en todos los botones, y el problema es que no hay manera de hacerla funcionar, os  dejo el código para ver si veis algún fallo o si conoceis otra manera de hacerlo ...
 
 
this.stop();
 
//declarar variables
 
var incio_btn:Button;
var material_btn:Button;
var itinerarios_btn:Button;
var reportajes_btn:Button;
var contacto_btn:Button;
 
//botones activos
 
inicio_btn.enabled=false;
material_btn.enabled=true;
itinerarios_btn.enabled=true;
reportajes_btn.enabled=true;
contacto_btn.enabled=true;
 
//funcion navegacion
 
function navigation(nombre:String):Void {
	this[nombre+"_btn"].onRelease = function():Void  {
		this._parent.gotoAndStop(nombre);
	}
}
 
//funciones
 
navigation("inicio");
navigation("material");
navigation("itinerarios");
navigation("reportajes");
navigarion("contacto");
 
 
Gracias por adelantado y saludos!! 
  
 
