Código:
Gracias de antemano 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 }