Comunidad de diseño web y desarrollo en internet online

menu espegable dinamico

Citar            
MensajeEscrito el 31 Ene 2008 09:39 pm
hola amigos tengo un menu despegable que lee informacion de un xml.La cosa es que al hacer click
este menu se despliega pero al sacar del mouse , este menu se pliega(onRollOut).
Mi pregunta es, como puedo hacer para q; haga un click y el menu se despliege, haga otro click y el menu pliege.Eso, espero me puedan ayudar!!
aca pego el codigo

Código :

for (i = 1; i <= numOfMenu + 1; i++)
{
    this[i]._y = this[i].defaultY = (i - 1) * gap + topMargin;
      this[i].bg.onPress = function ()
    {
      var miTween:Tween = new new Tween(mc_fondo, "_height",mx.transitions.easing.Strong.easeOut, 191 , 191 , 1, true);
      _global.over = this._parent._name;
   };
    this[i].bg.onRollOut = function ()
    {
         if(_global.over>0 ){
       var myTween:Tween = new Tween(mc_fondo,"_height",mx.transitions.easing.Strong.easeInOut, 190 , 110, 1 ,  true);
      _global.over = active;
      }
      };

Por sandino

51 de clabLevel



 

firefox
Citar            
MensajeEscrito el 31 Ene 2008 09:47 pm
Hombre, pues yo veo un Tween cuando ocurre el evento "onRollOut"... tu mismo lo tienes así.
O será que vi mal?, bueno, perdón si me equivoqué observando.
Un saludo.

Por gustavogarzon

166 de clabLevel



 

msie7
Citar            
MensajeEscrito el 31 Ene 2008 10:06 pm
Tiene errores sintácticos :S, intenta corregir eso primero

var miTween:Tween = new new Tween(mc_fondo, "_height",mx.transitions.easing.Strong.easeOut, 191 , 191 , 1, true);

Por infernalpr

236 de clabLevel



 

LoL

firefox
Citar            
MensajeEscrito el 31 Ene 2008 10:11 pm
Si, también te faltó cerrar el FOR.
Y bueno, creo que falta darle el import de la clase Tween.
Un saludo.

Por gustavogarzon

166 de clabLevel



 

msie7
Citar            
MensajeEscrito el 01 Feb 2008 12:46 pm
claro q ahi un onRollOut lo que no se , es como modifcarlo para hacer lo que me piden, ojala me ayuden!

Gracias!

Por sandino

51 de clabLevel



 

firefox

 

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