Devo creare un menu ad albero espandibile...quanlke consiglio?![]()
Devo creare un menu ad albero espandibile...quanlke consiglio?![]()
disegna il tuo albero per intero.
Ogni sezione deve essere un fotogramma_chiave diverso e in ognuno di essi devi mettere lo stop().
Ogni sezione in piu dovra essere un bottone.
Al click del bottone fai un gotoAndStop(numero del fot. dove c'è la sotto sezione).
Spero di essermi fatto capire.
Ciao
http://www.dartea.com
Grazie per la risposta ma non mi sono spiegata prima...lo devo svilutìppare con ActionScript e file XML esterno.
![]()
Il tuo file xml é generato dinamicamente?
http://www.dartea.com
Il file xml è statico e contiene i dati del menu che verrano presi dal codice ActionScript e visualizzati...non sono molto chiara vero?
Il fatto è che non so da che parte cominciare...
Sai come prelevare dati XML in flash?
Ti scrivo una struttura di codice per fare un esempio:
//testoMenu, title, tagmacro, tagmacroatt,cnt,colorescelto,cntsottosez,tagsottos ez,tagsottosezatt,notizia,tagmusica,nc,titolocanzo ne,tagcanzone;
var dbXML = new XML();
dbXML.onLoad = function ()
{
////*************/////
nomecliente=new Array();
categoria=new Array();
idworks=new Array();
titolo=new Array();
titolo2=new Array();
urlatt=new Array();
tipocatpresenti=new Array();
tipoclientpresenti=new Array();
////////**********////////
cnt=0;
cntcat=0;
cntclientpres=0;
var ndRoot = this.firstChild;
for (var i = 0; i<ndRoot.childNodes.length; i++) {
if (ndRoot.childNodes[i].nodeName == "work") {
tagwork = ndRoot.childNodes[i];
nomecliente[cnt] = tagwork.attributes.nameclient;
//////CREAZIONE DELLA COMBOBOX///--LISTA CLIENTI PER NOME-----///////////
_root.ListClient.addItem(nomecliente[cnt]);
///////////////////////////////////////////
urlatt[cnt] = tagwork.attributes.url;
categoria[cnt] = tagwork.attributes.category;
idworks[cnt] = tagwork.attributes.id;
titolo[cnt] = tagwork.attributes.title;
titolo2[cnt]= tagwork.attributes.title+"-"+categoria[cnt];
cnt++;
}
////////////////CARICAMENTO TIPO DI CATEGORIE PRESENTI///////////
if (ndRoot.childNodes[i].nodeName == "category") {
tagwork = ndRoot.childNodes[i];
tipocatpresenti[cntcat] = tagwork.attributes.nome;
//_root.caricatext.testo=_root.caricatext.testo+"\n" +tipocatpresenti[cntcat];
//trace(tipocatpresenti[cntcat]);
cntcat++;
}
/////////////////////////////////////
////////////////CARICAMENTO DEI CLIENTI PRESENTI///////////
if (ndRoot.childNodes[i].nodeName == "clientdistinct") {
tagclientdistinct = ndRoot.childNodes[i];
tipoclientpresenti[cntclientpres] = tagclientdistinct.attributes.nome;
//trace(tipoclientpresenti[cntclientpres]);
//_root.caricatext.testo=_root.caricatext.testo+"\n" +tipocatpresenti[cntcat];
cntclientpres++;
}
/////////////////////////////////////
}
}
dbXML.load("portfolio.xml");
CI SIAMO?
RIESCI A CAPIRCI ?
http://www.dartea.com
QUESTO é il file XML:
- <portfolio>
<work nameclient="WARNER BROS" category="XCV" url="xcv" id="96" title="EN SURSIS" />
<category nome="XCV" />
<clientdistinct nome="ANDREA" />
<clientdistinct nome="GIGI" />
<clientdistinct nome="TEST" />
<clientdistinct nome="TEST2" />
<clientdistinct nome="WARNER BROS" />
</portfolio>
http://www.dartea.com
Ora inizio a vedere...speriamo di farcela...sono una stagista e domani finisce il mio periodo. Vorrei fargli sto menu anche perchè era stata una mia idea.
Cogl...a!!
Sei una stedentessa CSEA per caso???
http://www.dartea.com
Ho fatto un corso per web designer all'ENAIP.