Graph-Design




  • Publicité

[Flash] Insérer son copyright au clic droit

AS2 et As3

Image Listing des tutoriels flash validés .
Le support se fait dans le sous-forum prévu à cet effet .


Avatar de l’utilisateur



Administratrice

Messages: 6256
Age: 37 ans
Inscription: 19/01/2010
Localisation: France
Logiciels:
PSP12 et 13
Photoshop CS3 et CS4
Flash 8, CS3 et CS4
Dreamweaver CS4
Cinema 4D
Illustrator CS3
Camtasia Studio
etc...
Message Perso:
Pour toute question, le forum est là pour ça .
MessagePosté: Mar 23 Nov 2010 21:34
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

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;


Image

Publicité


Retourner vers Tutos Flash

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité

Référencement gratuit • Forum informatique • Annuaire généraliste • Inforumatique • Hébergement d'images • Geekeden • Forum de services phpbb • Hébergeur web • Forum InfoPc
blog de création graphique, PAO et retouche photo • KazMag • Artkabis