all groups > flash (macromedia) > july 2004 >
You're in the

flash (macromedia)

group:

Sliding button



Sliding button George
7/30/2004 7:51:34 PM
flash (macromedia): 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

Re: Sliding button George
7/30/2004 8:43:19 PM
I am sliding it via Tween.


[quoted text, click to view]

Re: Sliding button sandman9
7/31/2004 12:22:00 AM
there's many ways of doing this. Are you sliding the submenu out via motion tween or script?

Re: Sliding button Julian
7/31/2004 1:04:24 AM
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]
Re: Sliding button George
8/1/2004 1:46:32 PM
I uploaded the FLA file of what I am trying to do, in case anyone can help
me.

www.asterixdesign.com/ftp/menu.fla


Thanks,

George

[quoted text, click to view]

Re: Sliding button akribie
8/1/2004 10:35:23 PM
Re: Sliding button George
8/1/2004 11:24:41 PM
Thank you Akribie, that is exactly what I was looking for.


George


[quoted text, click to view]

AddThis Social Bookmark Button