Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/01/2008, 15:15
EliTehuitzil
 
Fecha de Ingreso: septiembre-2007
Mensajes: 53
Antigüedad: 16 años, 7 meses
Puntos: 0
Re: Menu del click derecho sobre SWF

No me funciono ese sheshu, este es el completo script:

var derClk = new ContextMenu();
derClk.hideBuiltInItems();
derClk.customItems.push(new ContextMenuItem("OnSite Pro Robotics", gotoURL, true));
derClk.customItems.push(new ContextMenuItem(" > Go to inicial page", gotoURL));
derClk.customItems.push(new ContextMenuItem(" > Get Flash 9 Plugin", gotoURL));
derClk.customItems.push(new ContextMenuItem(" > Friendly Web Pages Links", gotoURL));
_root.menu = derClk;

function gotoURL(obj, item) {
switch (item.caption) {
case "Get Flash 9 Plugin":
getURL("http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
break;

case "Go to inicial page":
getURL("http://www.onsiteprorobotics.com");
break;

case "Friendly Web Pages Links":
getURL("http://www.google.com/");
break;
}
}