Je suis en train de développer un site portail dans le cadre d'un stage. J'utilise donc Silex, et l'entreprise souhaite intégrer des composants customisés (qui proviennent du site flashden.com). Je veux donc intégrer un menu, que j'ai modifié (principalement en as2 => afin d'obtenir les onglets souhaités). Ensuite, dans le code pur, j'ai intégrer, dans un case, le code suivant (donné par _lex dans un autre post : http://flash.mediabo...__fromsearch__1)
_global.getSilex().interpreter.exec("open:page1",this);
voici le case en question :
switch (this.no) {
case 1:
trace ("Actions button 1"); // add code here for button 1
_global.getSilex().interpreter.exec("open:page1",this);
break ;
case 2:
trace ("Actions button 2"); // add code here for button 2
_global.getSilex().interpreter.exec("open:page2",this);
break ;
case 3:
trace ("Actions button 3"); // add code here for button 3
_global.getSilex().interpreter.exec("open:page3",this);
break ;
case 4:
trace ("Actions button 4"); // add code here for button 4
_global.getSilex().interpreter.exec("open:page4",this);
break ;
case 5:
trace ("Actions button 5"); // add code here for button 5
_global.getSilex().interpreter.exec("open:page5",this);
break ;
default:
trace ("default action") ; // add code here for default
}
}
case 1:
trace ("Actions button 1"); // add code here for button 1
_global.getSilex().interpreter.exec("open:page1",this);
break ;
case 2:
trace ("Actions button 2"); // add code here for button 2
_global.getSilex().interpreter.exec("open:page2",this);
break ;
case 3:
trace ("Actions button 3"); // add code here for button 3
_global.getSilex().interpreter.exec("open:page3",this);
break ;
case 4:
trace ("Actions button 4"); // add code here for button 4
_global.getSilex().interpreter.exec("open:page4",this);
break ;
case 5:
trace ("Actions button 5"); // add code here for button 5
_global.getSilex().interpreter.exec("open:page5",this);
break ;
default:
trace ("default action") ; // add code here for default
}
}
Maintenant, lorsque j'intègre mon menu modifié dans silex par le biais de "composant swf", il apparait bel et bien, par contre, lorsque je clique sur un onglet, l'url est bien modifié ("/pageX") apparait bien, mais je n'ai pas de calque qui apparait.
Ma question est la suivante : est-ce que le code que j'ai intégré ne sert que pour une url d'une page déjà créée? Ou alors n'ai-je rien compris^^.
Cordialement,
Benjamin