23/03/2007, 14:58
|
| | | Fecha de Ingreso: octubre-2006 Ubicación: Colombia
Mensajes: 421
Antigüedad: 18 años, 1 mes Puntos: 7 | |
Re: Desactivar menu boton derecho ratón y mostrar un texto alternativo
Código:
function menuChoiceOne() //Called when Choice One is clicked
{
getURL("http://www.mipaginawebpersonal.com"); //Takes you to mipaginawebpersonal.com
}
function menuChoiceTwo() //Called when Choice Two is clicked
{
//Does nothing
}
cmNew = new ContextMenu(); //Creates a new right click menu
cmNew.hideBuiltInItems(); //Hides the built in items
cmNew.customItems.push(new ContextMenuItem("Choice One", menuChoiceOne)); //Adds a new item on the right click menu named Choice One that calls menuChoiceOne() when pressed.
cmNew.customItems.push(new ContextMenuItem("Choice Two", menuChoiceTwo)); //Adds a new item on the right click menu named Choice Two that calls menuChoiceTwo() when pressed.
this.menu = cmNew; //Sets the right click menu in the flash movie to the one you just created
__________________ - |