im pretty new to actionscript. Can someone turn this to a horizontal roll out. nothing seems to work for me.
onClipEvent (load)
{
roll = false;
menu = false;
open = false;
this._visible = false;
y_start = this._y;
y_stop = 20;
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.500000;
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.700000 + 1;
if (this._y < y_start + 1)
{
_y = y_start
open = false;
this._visible = false;
}
else
{
_y = _y - speed
} // end if
} // end if
}
thanks