views:

43

answers:

0

Hello,

I would like to create an Options Menu in my Flash AIR application for Android.

I've figured out already, that this ActionScript code could be used for capturing the hardware Menu button press event:

stage.addEventListener(KeyboardEvent.KEY_DOWN, _onKeyDown);

function onKeyDown(event:KeyboardEvent):void {
    if(event.keyCode == Keyboard.MENU) {
        event.preventDefault();
        trace("Menu Pressed");
    }
}

but how do you create the actual menu?

If you can't do it with AIR, then has anybody tried to recreate/mimic it manually already and could you please share the properties (colors, transparency, any gradients?) and transitions (sliding in/out) you've used?

I've found some guidelines already, but would appreciate any Flash-specific tips/properties (like which easing to use for sliding transitions?) you have

Thank you, Alex

alt text