Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/09/2008, 16:22
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 16 años, 5 meses
Puntos: 51
Respuesta: Funciones relativas al path

seria algo asi


Código PHP:
for (var 1i<=3i++) {
    
bt_fun(this["boton_"+i],this["fun_"+i]);
}
//funciones que se cargan en cada boton
function bt_fun(botonfuncion:Function) {

    
boton.onRollOver = function() {
        
funcion();
    };

}

//funciones para cada boton 
function fun_1() {
    
trace(texto.text="funcion 1");
}
function 
fun_2() {
    
trace(texto.text="funcion 2");
}
function 
fun_3() {
    
trace(texto.text="funcion 3");

si quieres probarlo solo create una caja de texto con nombre de instancia texto
y tres botones con nombre de instancia

boton_1,boton_3,boton_3

a ver si te sirve XD
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft