En la capa de acciones están los manejadores de los distintos eventos para los cuatro botones.
stop();
//eventos boton 1
var mensaje = "Pulse un boton";
boton1.onRollOver = function() {
aviso.text = "Google en nueva ventana";
};
boton1.onRollOut = function() {
aviso.text = mensaje;
};
boton1.onRelease = function() {
getURL("http://google.es", "_blank");
};
//eventos boton 2
boton2.onRollOver = function() {
aviso.text = "Google en iframe";
};
boton2.onRollOut = function() {
aviso.text = mensaje;
};
boton2.onRelease = function() {
getURL("http://google.es", "inlineframe");
};
//eventos boton 3
boton3.onRollOver = function() {
aviso.text = "Mandame un correo";
};
boton3.onRollOut = function() {
aviso.text = mensaje;
};
boton3.onRelease = function() {
getURL("mailto:ja_lopezl@yahoo.es");
};
//eventos boton 4
boton4.onRollOver = function() {
aviso.text = "Google en pop-up";
};
boton4.onRollOut = function() {
aviso.text = mensaje;
};
boton4.onRelease = function() {
getURL("javascript:popup()");
};