Tema: X a Y...
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/04/2005, 00:22
Avatar de Maximillian
Maximillian
 
Fecha de Ingreso: marzo-2005
Ubicación: México
Mensajes: 261
Antigüedad: 19 años, 1 mes
Puntos: 0
Información X a Y...

Resulta que aquí mismo en este foro, obtuve un código para hacer menus desplegables. Pero ahora quiero hacerlo para que en lugar de vertical, funcione horizonta, intente cambiando todas las x por y, y todas las y por x.No funciono; tambien intente cambiar algunas x, pero no me salio. Creen que me puedan ayudar a cambiarlo

Código:
onClipEvent(load) {
	
roll = false;
menu = false;
open = false;
this._visible = false;
y_start = this._y;
y_stop = 20; //esta es la distacia que baja el menu varia dependiendo del tamaño vertical de nuestro menu desplegable
y_max = y_stop + this._height;
}

onClipEvent (enterFrame){
mouse_x = _parent._xmouse;
mouse_y = _parent._ymouse;
menu_left = this._x;
menu_right = this._x + this._width;
menu_top = 0;
menu_bottom = this._y + this._height;
if (menu_left < mouse_x && mouse_x < menu_right && menu_top < mouse_y && mouse_y < menu_bottom)
{
menu = true;
}
else
{
menu = false;
} // end if
if ((roll || open) && (!open || menu))
{
this._visible = true;
speed = (y_max - menu_bottom) * 0.300000;
if (y_stop - 1 < this._y)
{
this._y = y_stop;
open = true;
roll = false;
}
else
{
_y = _y + speed
} // end if
} // end if
if (open && !menu)
{
speed = (y_max - menu_bottom) * 0.500000 + 1;
if (this._y < y_start + 1)
{
_y = y_start
open = false;
this._visible = false;
}
else
{
_y = _y - speed
} // end if
} // end if
}
Gracias de antemano