mi sono scaricato un menù che funziona con MX e non con
flash 5, come posso modificare il file in modo da
avere la compatibilità con il 5.
Di seguito posto il codice che secondo mè da problemi.
I problemi credo siano dati dal fatto che con flash 5
non sia possibile creare con AS i campi di testo.
Come posso risolvere il prbl?
function Create() {
i = 0;
for (a=0; a<titles.length; a++) {
for (b=0; b<elements[a].length; b++) {
duplicateMovieClip(el, 'el'+a+b, i);
_root['el'+a+b]._y = last+a*20;
_root['el'+a+b].desty = last+a*20;
mytxt = new String(elements[a][b]);
mytxt = mytxt.split('|');
_root['el'+a+b].txt.text = mytxt[0];
_root['el'+a+b].link = mytxt[1];
i++;
}
}
for (c=0; c<titles.length; c++) {
duplicateMovieClip(tl, 'tl'+c, i);
_root['tl'+c]._y = last+c*20;
_root['tl'+c].desty = last+c*20;
_root['tl'+c].txt.text = titles[c];
_root['tl'+c].num = c;
_root['tl'+c].open = false;
i++;
}
}
function Open(a) {
_root['tl'+a].open = true;
for (b=0; b<elements[a].length; b++) {
lasty = _root['el'+a+b].desty+((b+1)*20);
_root['el'+a+b].desty = lasty;
}
i = 1;
for (c=a+1; c<elements.length; c++) {
pos = lasty+(i*20);
_root['tl'+c].desty = pos;
for (d=0; d<elements[c].length; d++) {
_root['el'+c+d].desty = pos;
}
i++;
}
}
function Close(a) {
_root['tl'+a].open = false;
for (b=0; b<elements[a].length; b++) {
lasty = _root['tl'+a]._y;
_root['el'+a+b].desty = lasty;
}
i = 1;
for (c=a+1; c<elements.length; c++) {
pos = lasty+(i*20);
_root['tl'+c].desty = pos;
for (d=0; d<elements[c].length; d++) {
_root['el'+c+d].desty = pos;
}
i++;
}
}
function CloseOpened() {
for (a=0; a<titles.length; a++) {
if (_root['tl'+a].open) {
_root.Close(_root['tl'+a].num);
}
}
}
Grazie a tutti