English 中文(简体)
“游戏手册”概念
原标题:Option menu on Playbook view

• 如何把选择菜单放在游戏桌上? 是否有标准飞机要这样做,我是利用空气SDK

最佳回答

在我试验AIR时,我看不到APIC,但我发现一个工作。

基本上,我登记在盖杜阿佩斯的触角活动,用手法显示和藏匿我的人,使用特韦恩。

赞同你的看法,而不是你可以做到:

// call back function when the main view is loaded
protected function registerMenu( event:FlexEvent ):void
{
    QNXApplication.qnxApplication.addEventListener( 
                                   QNXApplicationEvent.SWIPE_DOWN, 
                                   pullDownMenu );
    navigator.addElement(menu);
}

private function pullDownMenu( event:QNXApplicationEvent ):void
{

    Tweener.addTween(menu, {y: 0, time: 0.5, transition: "linear"});                                   
    navigator.stage.addEventListener(MouseEvent.CLICK, onStageMouseClick);
    trace("menu down");
}           

private function onStageMouseClick( e:MouseEvent ):void
{
    if (mouseY > menu.height)
    {
       Tweener.addTween(menu, {y: -menu.height, time: .3, transition: "linear"});                               
       trace("menu up");
    }
}

This is very simple example that I can remember (don t have the code anymore), but a bit of google-ing on this functions and objects might help you to implement the application menu without the API if it exits.

如果你找到另一种方式,请在此提及。

问题回答

暂无回答




相关问题
Flex: Text Input that accepts number only

Need a code that only accepts numbers. Upon inputting, the code must check if it is number, if not, it must remove the entered key or not enter it at all

How to dynamically generate variables in Action Script 2.0

I have a for loop in action script which I m trying to use to dynamically create variable. Example for( i = 0 ; i &lt 3 ; i++) { var MyVar+i = i; } after this for loop runs, i would like to ...

drag file(s) from destop directly to flash webpage

Could someone please let me know if is possible to drag (multiple) files from desktop directly into a flash webpage. If yes could you please link me to some online resources.

Can XMLSocket send more than once in a frame?

I have a XMLSocket and I call send twice in the same function. The first send works but the second does not? Does XMLSocket have a restriction to only send one message per frame? Do I have to queue ...

How do you stop a setInterval function?

I have a function that I want to run at an interval within a frame. I use the following code to start the function: var intervalID = setInterval(intervalFunction, 3000); Then, in a button s ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

热门标签