Cita:
Iniciado por santirekapo90
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 originalvar menu:ContextMenu = new ContextMenu();
menu.hideBuiltInItems();
var arreglolinks:Array = new Array("http://www.google.cl/::GOOGLE","http://www.lun.cl/::LUN");
var totallinks:Number = arreglolinks.length;
var vinculo:Array = new Array();
init();
function init():Void{
var i:Number = 0;
for(i=0;i<totallinks;i++){
var tmp:Array = arreglolinks[i].split("::");
var elemento:ContextMenuItem = new ContextMenuItem(tmp[1],linkear,true,true)
elemento.onSelect = function(obj:Object,item:ContextMenuItem):Void{
var caption:String=item.caption;
linkear(caption);
}
menu.customItems.push(elemento);
}
this.menu = menu;
}
function linkear(a:String):Void{
var i:Number = 0;
for(i=0;i<totallinks;i++){
var tmp:Array = arreglolinks[i].split("::");
if(a==tmp[1]){
if(tmp[0]){
trace(tmp[0]);
getURL(tmp[0],"_blank");
}
}
}
}
Espero te sea de ayuda.
Saluda Atte.
Claudio Barrera Asencio.