• 如何把选择菜单放在游戏桌上? 是否有标准飞机要这样做,我是利用空气SDK
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
• 如何把选择菜单放在游戏桌上? 是否有标准飞机要这样做,我是利用空气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.
如果你找到另一种方式,请在此提及。
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
Context : I m working on a Flash application developed with FDT and compiled with Flash CS4 (I need a huge library). It should connect to various Weborb services. Weborb is properly configured. My ...
I have a for loop in action script which I m trying to use to dynamically create variable. Example for( i = 0 ; i < 3 ; i++) { var MyVar+i = i; } after this for loop runs, i would like to ...
I m trying to create a simple loop that adds a random number of stars, fades them out and removes them. The script I ve come up with does everything but remove them, and perhaps I need a less on ...
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.
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 ...
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 ...
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 =...