soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un movieClip
vide dans ta bibliothèque et faire un "export for actionscript" avec un
identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" wrote in message
news:cvuve8$nh6$Là je connais pas
Tu peux m'en dire plus??
"E-stampida" a écrit dans le message de news:
cvuvan$nbu$tu peux faire un menu flash dynamique quand même...
soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un movieClip
vide dans ta bibliothèque et faire un "export for actionscript" avec un
identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" <webforumsuser@macromedia.com> wrote in message
news:cvuve8$nh6$1@forums.macromedia.com...
Là je connais pas
Tu peux m'en dire plus??
"E-stampida" <nospam@anonymous.com> a écrit dans le message de news:
cvuvan$nbu$1@forums.macromedia.com...
tu peux faire un menu flash dynamique quand même...
soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un movieClip
vide dans ta bibliothèque et faire un "export for actionscript" avec un
identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" wrote in message
news:cvuve8$nh6$Là je connais pas
Tu peux m'en dire plus??
"E-stampida" a écrit dans le message de news:
cvuvan$nbu$tu peux faire un menu flash dynamique quand même...
Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" a écrit dans le message de news:
cvuvm5$ntr$soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for actionscript"
avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" wrote in message
news:cvuve8$nh6$Là je connais pas
Tu peux m'en dire plus??
"E-stampida" a écrit dans le message de news:
cvuvan$nbu$tu peux faire un menu flash dynamique quand même...
Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" <nospam@anonymous.com> a écrit dans le message de news:
cvuvm5$ntr$1@forums.macromedia.com...
soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for actionscript"
avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" <webforumsuser@macromedia.com> wrote in message
news:cvuve8$nh6$1@forums.macromedia.com...
Là je connais pas
Tu peux m'en dire plus??
"E-stampida" <nospam@anonymous.com> a écrit dans le message de news:
cvuvan$nbu$1@forums.macromedia.com...
tu peux faire un menu flash dynamique quand même...
Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" a écrit dans le message de news:
cvuvm5$ntr$soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for actionscript"
avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" wrote in message
news:cvuve8$nh6$Là je connais pas
Tu peux m'en dire plus??
"E-stampida" a écrit dans le message de news:
cvuvan$nbu$tu peux faire un menu flash dynamique quand même...
Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" a écrit dans le message de news:
cvuvm5$ntr$soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for actionscript"
avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" wrote in message
news:cvuve8$nh6$Là je connais pas
Tu peux m'en dire plus??
"E-stampida" a écrit dans le message de news:
cvuvan$nbu$tu peux faire un menu flash dynamique quand même...
Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" <nospam@anonymous.com> a écrit dans le message de news:
cvuvm5$ntr$1@forums.macromedia.com...
soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for actionscript"
avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" <webforumsuser@macromedia.com> wrote in message
news:cvuve8$nh6$1@forums.macromedia.com...
Là je connais pas
Tu peux m'en dire plus??
"E-stampida" <nospam@anonymous.com> a écrit dans le message de news:
cvuvan$nbu$1@forums.macromedia.com...
tu peux faire un menu flash dynamique quand même...
Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" a écrit dans le message de news:
cvuvm5$ntr$soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for actionscript"
avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" wrote in message
news:cvuve8$nh6$Là je connais pas
Tu peux m'en dire plus??
"E-stampida" a écrit dans le message de news:
cvuvan$nbu$tu peux faire un menu flash dynamique quand même...
attention que ça ne marche pas en mx mais en mx 2004...
"Nadège" wrote in message
news:cvv326$t05$Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" a écrit dans le message de news:
cvuvm5$ntr$soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for
actionscript" avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" wrote in message
news:cvuve8$nh6$Là je connais pas
Tu peux m'en dire plus??
"E-stampida" a écrit dans le message de news:
cvuvan$nbu$tu peux faire un menu flash dynamique quand même...
attention que ça ne marche pas en mx mais en mx 2004...
"Nadège" <webforumsuser@macromedia.com> wrote in message
news:cvv326$t05$1@forums.macromedia.com...
Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" <nospam@anonymous.com> a écrit dans le message de news:
cvuvm5$ntr$1@forums.macromedia.com...
soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for
actionscript" avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" <webforumsuser@macromedia.com> wrote in message
news:cvuve8$nh6$1@forums.macromedia.com...
Là je connais pas
Tu peux m'en dire plus??
"E-stampida" <nospam@anonymous.com> a écrit dans le message de news:
cvuvan$nbu$1@forums.macromedia.com...
tu peux faire un menu flash dynamique quand même...
attention que ça ne marche pas en mx mais en mx 2004...
"Nadège" wrote in message
news:cvv326$t05$Désolée mais ca ne fonctionne pas !
ca me fait un rectangle vide, sans lien
"E-stampida" a écrit dans le message de news:
cvuvm5$ntr$soit tu fais un menu dynamique avec lien vers un fichier externe (txt,
xml, php ou autre) soit avec tes variables dans un tableau.
Voici un petit exemple, tout ce que tu as à faire c'est créer un
movieClip vide dans ta bibliothèque et faire un "export for
actionscript" avec un identifier "bouton".
// Tableau
var nomBoutons:Array=new Array("Accueil", "Activités", "Références",
"Contact", "Liens");
var liens:Array=new Array
("accueil.html","activites.html","ref.html","contact.html","liens.html");
//Definition du texte "normal"
var typo_normal:TextFormat = new TextFormat();
typo_normal.color = 0x666666;
typo_normal.font = "Verdana";
typo_normal.size = 10;
//Definition du texte "rollOver"
var typo_rollover:TextFormat = new TextFormat();
typo_rollover.color = 0xFF3300;
typo_rollover.font = "Verdana";
typo_rollover.size = 10;
//boucle de création des boutons
for (var i=0; i<=4; i++){
this.attachMovie("bouton", "monBouton" + i, this.getNextHighestDepth());
createButton (150,16);
this["monBouton"+i].createTextField("monTexte",2,0,0,1,25);
this["monBouton"+i].monTexte.autoSize = "left";
this["monBouton"+i].monTexte.text = nomBoutons[i];
this["monBouton"+i].monTexte.setTextFormat(typo_normal)
this["monBouton"+i].monLien = liens[i];
this["monBouton"+i]._y=(18*i)+10;
this["monBouton"+i]._x
this["monBouton"+i].monTexte._x=2;
this["monBouton"+i].onRollOver=function(){
this.monTexte.setTextFormat(typo_rollover);
}
this["monBouton"+i].onRollOut=function(){
this.monTexte.setTextFormat(typo_normal);
}
this["monBouton"+i].onRelease=function(){
trace (this.monLien);
}
}
//fonction de création du design du bouton
function createButton (largeur, hauteur){
this["monBouton"+i].createEmptyMovieClip("design", 1);
this["monBouton"+i].design.beginFill(0x666666, 7);
this["monBouton"+i].design.lineStyle(1, 0x666666, 100);
this["monBouton"+i].design.moveTo(0, 0);
this["monBouton"+i].design.lineTo(largeur, 0);
this["monBouton"+i].design.lineTo(largeur, hauteur);
this["monBouton"+i].design.lineTo(0, hauteur);
this["monBouton"+i].design.lineTo(0,0);
}
"Nadège" wrote in message
news:cvuve8$nh6$Là je connais pas
Tu peux m'en dire plus??
"E-stampida" a écrit dans le message de news:
cvuvan$nbu$tu peux faire un menu flash dynamique quand même...