Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/05/2010, 13:00
polo_W12
 
Fecha de Ingreso: enero-2008
Ubicación: Concepción, Chile
Mensajes: 76
Antigüedad: 16 años, 3 meses
Puntos: 3
Respuesta: desactivar menu de flash

Cita:
Iniciado por santirekapo90 Ver Mensaje
yo estoy interesado en hacer esto, pero as 2.0 ¿alguein sbe como hacer para sacar el menu para cuando haces clic derecho y poner otras cosas?

Amigo aqui va lo mismo de arriba pero con actionscript2 el anterior era con actionscript3

Código ACTIONSCRIPT:
Ver original
  1. var menu:ContextMenu = new ContextMenu();
  2. menu.hideBuiltInItems();
  3.  
  4. var arreglolinks:Array      = new Array("http://www.google.cl/::GOOGLE","http://www.lun.cl/::LUN");
  5. var totallinks:Number       = arreglolinks.length;
  6. var vinculo:Array           = new Array();
  7.  
  8. init();
  9.  
  10. function init():Void{
  11.     var i:Number = 0;
  12.     for(i=0;i<totallinks;i++){
  13.         var tmp:Array   = arreglolinks[i].split("::");
  14.         var elemento:ContextMenuItem = new ContextMenuItem(tmp[1],linkear,true,true)
  15.         elemento.onSelect = function(obj:Object,item:ContextMenuItem):Void{
  16.             var caption:String=item.caption;
  17.             linkear(caption);
  18.         }
  19.         menu.customItems.push(elemento);
  20.     }
  21.     this.menu = menu;
  22. }
  23.  
  24. function linkear(a:String):Void{
  25.     var i:Number = 0;
  26.     for(i=0;i<totallinks;i++){
  27.         var tmp:Array   = arreglolinks[i].split("::");
  28.         if(a==tmp[1]){
  29.             if(tmp[0]){
  30.                 trace(tmp[0]);
  31.                 getURL(tmp[0],"_blank");
  32.             }
  33.         }
  34.     }
  35. }

Espero te sea de ayuda.
Saluda Atte.
Claudio Barrera Asencio.