Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/02/2008, 07:05
Avatar de Sandino
Sandino
 
Fecha de Ingreso: octubre-2006
Mensajes: 277
Antigüedad: 17 años, 6 meses
Puntos: 1
menu despegable dinamico

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;
      }
      };