Rise Up - Rise Down

Hey gang,

Check out http://www.samsungelectronics.com/wow/comdex2002/

Does anyone know how to get that menu to rise up when you mouse over it? And then it goes back down…apparently when you mouse out?

I am refering to the grey boxes.

Thoughts anyone?

Kellys

lots and lots of talent :slight_smile:

Now that is cool… I hope one of the Flash masters here knows how to do that and shows us…

talent - no doubt…this is sweet stuff…

it shouldn’t be that hard … :smirk:

http://www.kirupa.com/developer/mx/easing_mouseclick.htm

in the tutorial the coordinates are defined depending the mouse position when you press over the stage
just change them to your predefined positions

showmenuY = something
hidemenuY = something

then use a hitTest()

onClipEvent (enterFrame) {
	if (this.hitTest (_root._xmouse, _root._ymouse, true)) {
		this._y += (showmenuY - this._y) / inertia
	} else {
		this._y += (hidemenuY - this._y) / inertia
	}
}

am i making any sense ?? :crazy:

nope :-\ ? download the attachment :slight_smile:

Thanks Kax…this worked perfectly!!!

anytime kellys =)

You don’t have to use hitTest with MX. You can simply use rollOvers and dynamic event handlers :slight_smile: Saves ressources, and it’s much cleaner.

i’ve had some bad experiences with rollovers, they seem to want to not rollout…

hmm…that’s a little hard to understand…its like when you rollover them…the movie you want plays…but when you rollout it sometimes just stays. its really a pain in the butt…=)