PDA

View Full Version : PullOutMenu Class


mprzybylski
12-12-2006, 07:41 PM
I usually struggle to make dropdown menus in Flash so I just made a class that takes care of it for me. For the sake of not having to retype this, I'm just posting what I posted on my blog:

The PullOutMenu class creates a menu like the classic dropdown menu with the options to direct it up, down, left, or right depending on values set. You also have the ability to set optional parameters like the menu open speed, close speed, the easing function to use for the menu opening, and the event on which the menu showing appears (i.e. rollover, release, press).

Example (http://blog.reintroducing.com/classes/PullOutMenu/PullOutMenuExample.html)
Documentation (http://blog.reintroducing.com/classes/PullOutMenu/PullOutMenu.html)
Download (http://blog.reintroducing.com/classes/PullOutMenu/PullOutMenu.zip)
Blog Post (http://blog.reintroducing.com/index.php/12/12/2006/377)

CriTiCeRz
12-12-2006, 07:52 PM
That looks awesome. Definitely will use some day.

Beebs
12-20-2006, 01:22 AM
This is so cool. Can I incorporate XML for the main menu and submenu?

mprzybylski
12-20-2006, 10:19 AM
sure you can, you can incorporate whatever you want. all this takes care of is setting up the hit button and the movement of the menu/hit states. what you put in it is totally up to you.

stringy
12-20-2006, 02:10 PM
nice work, looks like you are creating a class everyday at the moment.
Glad to see your graphics are of a similar standard to mine :lol:

mprzybylski
12-20-2006, 04:02 PM
haha, thanks stringy.

im just creating/releasing classes that i use a lot for everyday stuff. when i was starting out trying to make scrollers/pull down menus, i wish stuff like this was around because it was always a pain to figure out all the code and then figure out how to reuse it on other projects. i realize that not everyone knows how to use classes and thats why i provide the example FLA files as well.

and when i create the example fla files i never make anything that looks nice, so when i release it i end up just being too lazy to create something nicer, hehe.