Insérer son copyright au clic droit
Insérer les infos au clic droit, faire :
- ajouter un nouveau calque
- puis fenêtre ==> action ou F9
- coller une des actions suivante selon la version ( AS2 ou AS3 )
-AS 2
-AS 3
Insérer les infos au clic droit, faire :
- ajouter un nouveau calque
- puis fenêtre ==> action ou F9
- coller une des actions suivante selon la version ( AS2 ou AS3 )
-AS 2
- Code: Tout sélectionner
function doSomething() {
}
function doSomething2() {
getURL("http://........../", _blank);
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Pseudo ou Nom du site © 2010", doSomething);
Functioned2 = new ContextMenuItem("Pseudo", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
-AS 3
- Code: Tout sélectionner
var my_menu:ContextMenu = new ContextMenu();
my_menu.hideBuiltInItems();
var my_notice = new ContextMenuItem("Titre");
var my_email = new ContextMenuItem("Mail");
var my_copyright = new ContextMenuItem("Copyright - 2010");
my_copyright.enabled = false;
my_copyright.separatorBefore = true;
function openLink(e:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://.............."));
}
my_notice.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink);
my_menu.customItems.push(my_notice, my_email, my_copyright);
contextMenu = my_menu;










