Warning: include() [function.include]: Unable to access /var/www/html/rogue-development/blog2/wp-content/advanced-cache.php in /var/www/html/rogue-development/blog2/wp-settings.php on line 62

Warning: include(/var/www/html/rogue-development/blog2/wp-content/advanced-cache.php) [function.include]: failed to open stream: No such file or directory in /var/www/html/rogue-development/blog2/wp-settings.php on line 62

Warning: include() [function.include]: Failed opening '/var/www/html/rogue-development/blog2/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/rogue-development/blog2/wp-settings.php on line 62

Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /var/www/html/rogue-development/blog2/wp-includes/functions.php on line 3468

Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /var/www/html/rogue-development/blog2/wp-includes/functions.php on line 3382

Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in /var/www/html/rogue-development/blog2/wp-includes/functions.php on line 3382
Popup Menus and Graphical Buttons « Marc’s Musings

Popup Menus and Graphical Buttons

Skinning Flex controls can be a pain. You need a designer who really knows what they’re doing and you have to embed your assets in your application (or at least I haven’t seen a way around that).

On a current flex project we want some buttons nicely designed by a flash guy. Those buttons should open a popup menu with more buttons on it. (like any standard toolbar)

Requirements:

  • Easy way for designer to create graphical buttons.
  • A way of using those graphical buttons in a button/popup combination
  • Load assets at runtime so they can be swapped out easily (for different languages for instance)
  • Include keyboard navigation
  • Simple to use

Solution:

First, I created a graphical button that will load in a standard swf with some specially named frames. The designer puts the different button states in the different frames. (There HAS to be a standard Flex control for this, but I couldn’t find it. Any suggestions? I’d love to replace my little custom implementation with a standard one.)

Then I created a combo-box like control that uses those buttons with a popup menu.

Results:
http://www.rogue-development.com/popup_menu/sandbox.html

I’ll package this up and publish under an MIT license sometime soon if anyone else is interested.

8 Responses to “Popup Menus and Graphical Buttons”


Comments are currently closed.