Comunidad de diseño web y desarrollo en internet online

accordion menu

Citar            
MensajeEscrito el 20 Ene 2009 01:08 pm
hola, como estan?.

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 :) por lo cual lo baje (este sitio no tenia ningun tuto). Al abrir el .fla veo como decia en el sitio y como yo queria q sea q este menu abria swf por separados, ahora bien, mi problema es q me pide incluir el archivo .as (llamado lmc_tween.as) q no estaba en el zip :? alguien tiene alguna idea como hacerlo?. necestio ese menu. :(

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 :oops:

saludos

Por Rakin

Claber

140 de clabLevel



 

firefox
Citar            
MensajeEscrito el 20 Ene 2009 02:15 pm

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 20 Ene 2009 04:39 pm
jorge disculpa mi ignorancia. pero como debo utlilizar esos lmc_tween.as para q se adapten a mi pelicula (al menu)

gracias por responder

Por Rakin

Claber

140 de clabLevel



 

firefox
Citar            
MensajeEscrito el 20 Ene 2009 04:40 pm
Solo busca el archivo que necesita incluir y ponlo en el mismo directorio donde tienes tu fla

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 20 Ene 2009 07:55 pm
muchas gracias Jorge

solucionado :D

Por Rakin

Claber

140 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.