Put them inside a parent clip. Use the parent's onmousemove and each
time onmousemoved is called, check to see if you are over one of the
children. eg. child1.hitTest(xmousecoord, ymousecoord, ...)
onmousemove should be a dynamic function, eg. created when you roll over
the parent eg. this.onMouseMove = function() { ... } and destroyed when
you roll out of the parent.
[quoted text, click to view] George wrote:
> Hello,
>
> I was wondering if someone could help me figure out the construction of a
> sliding button.
>
> Basically, I would have a main button, which, when there is a mouseover, 2
> buttons will slide to the right of it, sort of like submenu buttons.
>
> The problem I am having is that when I move the mouse over to the submenu
> buttons, it is essencially a mouseout, and the button collapses, or goes
> back to its initial state.
>
> I would like to create a button where on mouseover, the submenu would extend
> out, and on mouse out of the main button or the submenus, the submenus will
> hide.
>
> Thanks for any insight on this, or for pointing me in the right direction.
>
> George
>