air

Starling game resolution in multiplataform

…衆ロ難τιáo~ 提交于 2020-01-03 04:18:11
问题 We're building a game in starling, and we want it to be multiplataform, but we found some problems with resolutions, we have designed the game for iPad, and we want it to run in samsung galaxy tab 10.1 and iPhone, The problem we have in SGT 10.1 is that we want to center the content and add an extra background to fix the black tires in the sides, and in iPhone 4, the content is bigger that the screen... do you know a way to solve it? Thanks 回答1: Here is a link that explains how to develop for

Google plus ane air native extension failed resolving interface

这一生的挚爱 提交于 2020-01-03 03:00:29
问题 I am attempting to add Google Plus support to an Air mobile app by creating a native extension. The code works in a standalone project however attempting to use it as a native extension produces the following error: Failed resolving Lcom/myname/ane/sharingextensions/googleplus/GooglePlusConnect; interface 479 'Lcom/google/android/gms/common/api/GoogleApiClient$ConnectionCallbacks;' 04-08 15:51:29.573: W/dalvikvm(19956): Link of class 'Lcom/myname/ane/sharingextensions/googleplus

Adobe AIR: Controls flipped (mirrored) in certain build environments

◇◆丶佛笑我妖孽 提交于 2020-01-03 02:49:08
问题 I'm having an issue where certain controls are flipped, depending on the machine that I'm building my project on. On my development machine, when I build it, everything is okay. However, when I build it on our build server, some things are flipped. It seems to be things that are on a higher layer - for instance, options in the select control (see first image below), alerts/overlays (see second image below), etc. It's not just the text, either - the entire content is flipped, images and all. I

Prezi-like web interface. Flash or HTML5?

て烟熏妆下的殇ゞ 提交于 2020-01-02 08:22:15
问题 I would like to write a web interface that resembles Prezi.com in its user experience. What would be the best technology for that purpose? Project requirements: Fast implementation (it is a demo) - I'd appreciate a rough estimate Large amounts of data - dynamic content loading/unloading is required. My natural candidates are Flash and HTML5. Prezi.com is an alternative platform for presentations that uses single canvas zoom/pan/rotate controls instead of classic slide-by-slide interface. An

Flex / AIR, how to set focus on a UI Control, Button, etc?

南楼画角 提交于 2020-01-02 08:19:48
问题 So, I'm trying to set focus on a specific button when the app launches (or later based on certain events), so that the user can simply hit return to press the button. None of the following approaches work however. protected function group1_creationCompleteHandler(event:FlexEvent):void { //btnBrowse.setFocus(); focusManager.setFocus(btnBrowse); } 回答1: Try: protected function group1_creationCompleteHandler(event:FlexEvent):void { callLater(btnBrowse.setFocus); } 回答2: Flex doesn't have focus on

Detecting user idle from computer

落爺英雄遲暮 提交于 2020-01-02 07:08:18
问题 Solution found thanks to @Trinh Hoang Nhu: Credits to @stacker ( Java Keyboard/Mouse activity (even outside of my app) ) http://ksquared.de/blog/2011/07/java-global-system-hook/ Is there any way to detect keystrokes and/or mouse acitivity from javascript even if page is not active? I'd like to just detect if user is idle or not. I'm sure it is not possible in pure javascript, baut mybe some flash applications can do it and iteract with javascript? Browser addon is also an option. Can browser

Bitmap Channels order different in Android

泄露秘密 提交于 2020-01-01 19:13:50
问题 I got a problem with an Air Native Extension in Android. The ANE receive a Bitmap from the Actionscript side, compress it in jpeg format and send it back to the Actionscript that will write it on the storage. Everything is good but one last thing. It seems that the channels order for Actionscript is different than in Android, so my compressed image have RED colors in place of BLUE.. here is the code: Actionscript (I'm using a library called deng.fzip.FZipLibrary to get the bitmap from a zip

User Login validation and preloader in Adobe Air

社会主义新天地 提交于 2020-01-01 19:04:13
问题 I am trying to figure out ways to authenticate a user and load the application (while showing a preloader) in Adobe Air [desktop application, and not web based flex app]. This is what I have been able to achieve so far:- A window asks for login details, once validated I make the login window invisible and open an instance of the application's main window. There are 2 problems with this:- I have to open a new window (2 windows in total). It would rather look better if I was able to simply show

How open pdf in Air for Android/Black berry

无人久伴 提交于 2020-01-01 17:09:56
问题 I want to open pdf in Air for Android/Black berry. How i do that? I use AIR 2.6 and IDE is Flash Builder 4.5. 回答1: StageWebView. http://help.adobe.com/en_US/as3/dev/WS901d38e593cd1bac3ef1d28412ac57b094b-8000.html Example copied from the link above: package { import flash.display.MovieClip; import flash.media.StageWebView; import flash.geom.Rectangle; public class StageWebViewExample extends MovieClip{ var webView:StageWebView = new StageWebView(); public function StageWebViewExample() {

How open pdf in Air for Android/Black berry

╄→гoц情女王★ 提交于 2020-01-01 17:09:12
问题 I want to open pdf in Air for Android/Black berry. How i do that? I use AIR 2.6 and IDE is Flash Builder 4.5. 回答1: StageWebView. http://help.adobe.com/en_US/as3/dev/WS901d38e593cd1bac3ef1d28412ac57b094b-8000.html Example copied from the link above: package { import flash.display.MovieClip; import flash.media.StageWebView; import flash.geom.Rectangle; public class StageWebViewExample extends MovieClip{ var webView:StageWebView = new StageWebView(); public function StageWebViewExample() {