Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/04/2003, 14:45
Avatar de xavivars
xavivars
 
Fecha de Ingreso: enero-2002
Ubicación: Benissa - la Marina Alta
Mensajes: 212
Antigüedad: 22 años, 3 meses
Puntos: 1
Al final he hecho esto (modificando ligeramente un ejemplo de www.actionscript.org)


Código PHP:
total 8;

offset 30;

function 
button(index,text,link,frame) {
    
this.index index;
    
this.tex text;
    
this.link link;
    
this.frame frame;
}


function 
place(num) {
    
duplicateMovieClip("b00""but" numnum);
    
tellTarget ("but" num +".mc") {
        
gotoAndStop(2);
    }

    
setProperty("but" num_ynum*offset);

    
set("but" num ".btext", eval("b" num ".tex"));

    eval(
"but" num).onRollOver = function() {
        
tellTarget ("but" num) {
            
gotoAndStop(2);
        }
    };

    eval(
"but" num).onRollOut = function() {
        
tellTarget (eval("but" num)) {
            
gotoAndStop(1);
        }
    };

    eval(
"but" num).onDragOut = function() {
        
tellTarget (eval("but" num)) {
            
gotoAndStop(1);
        }
    };

    eval(
"but" num).onPress = function() {
        
getURL(eval("b" num ".link"), "eval(\"b\" + num + \".frame\")");
        
trace("eval(\"b\" + num + \".frame\")");

        
stopall();
        
tellTarget ("but" num ".mc") {
            
play();
        }
    }
}

b1 = new button (1,"Fotos","fotov.html","principal");
b2 = new button (2,"Fotos antigues","http://www.flashcomponents.net/","_blank");
b3 = new button (3,"Cultura","http://surface.yugop.com/","_blank");
b4 = new button (4,"Cinema","http://surface.yugop.com/","_blank");
b5 = new button (5,"Festes","http://www.macromedia.com","_blank");
b6 = new button (6,"Enllaços","mailto:[email protected]");
b7 = new button (7,"Contacte'ns","http://www.ua.es","_blank");
b8 = new button (8,"Webmaster","http://www.ua.es","_blank");

for (
i=1i<total+1i++) {
    
place(i);
}

stopall();
function 
stopall() {
    for (
i=1i<total+1i++) {
        
tellTarget ("but" ".mc") {
            
gotoAndStop(1);
        }
    }
}

setProperty("b00"_visiblefalse); 
El problema es que, no se porque, cuando pulso sobre el primer boton, la pagina no se carga dentro del marco "principal", sino en una ventana nueva. Alguien sabe porque puede ser?