bueno tengo un problemita, buscando y viendo como poder crear un menu acordeon encontre uno q es igual al q tenia en mente, para mayor alegria mia tenia el .fla
dejo el code:
Código :
#include "lmc_tween.as"
//
//
_global.itens = [item1, item2, item3, item4, item5];
_global.nome = ["TRICOLOR", "PAULISTA", "BI-MUNDIAL", "HOHOHOHO R0X ISSO!", "MAIS UM ITEM PRA ENCHER LINGUISSA, RS"];
_global.movie = ["movie1.swf", "movie2.swf", "movie3.swf", "movie1.swf", "movie3.swf"];
function fcn() {
for (var i=0; i<itens.length; i++) {
if (i != selecionado) {
itens[i].bt.colorTo(0x000000, 1);
itens[i].bt.enabled = true;
itens[i].bt.useHandCursor = true;
itens[i].fd.tween("_height", 0, 2);
itens[i].alvo.brightOffsetTo(100, 2);
}
}
}
for (var i=0; i<itens.length; i++) {
itens[i].i = i;
itens[i].titulo.text = nome[i];
//
itens[i].bt.onRollOver = function() {
this.colorTo(0x99cc00, 1);
};
itens[i].bt.onRollOut = function() {
this.colorTo(0x333333, 1);
};
itens[i].bt.onRelease = function() {
_global.selecionado = this._parent.i;
this._parent.fd.alvo.brightOffsetTo(0, 2);
this._parent.fd.alvo.loadMovie(movie[selecionado]);
this._parent.fd.tween("_height", 232, 2);
this.colorTo(0x99cc00, 2);
this.enabled = false;
this.useHandCursor = false;
fcn();
};
}
onEnterFrame = function () {
item2._y = item1._y+item1._height+1;
item3._y = item2._y+item2._height+1;
item4._y = item3._y+item3._height+1;
item5._y = item4._y+item4._height+1;
};
//
si es necesario dejo el .zip pero no creo q alguien quiera bajarlo. :s sinceramente no recuerdo el sitio del cual lo descarge.
help me
saludos
