开发者

How to create Android Options Menu in Adobe AIR? (not Java)

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.addEventList开发者_运维问答ener(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

How to create Android Options Menu in Adobe AIR? (not Java)


Hi dude I recently was searching for the same issue and I've found this nice snippet. You can use AS3 and Air to develop your mobile apps and build your android like menu! It really worked for me so that I decided to share it

Try this: http://myappsnippet.com/android-menu-air-extension/


You can't access Androids native menu from AIR, it is available only from Android SDK. So you have to build something similar in Flex (if you plan to develop your app using AIR).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜