air

Adobe Air - get device name (such as EVO, DROID X..)

本秂侑毒 提交于 2019-12-31 01:48:37
问题 I'm working in Actionscript in Adobe Air, and I want to get a device's model name, such as 'EVO' or 'DROID X'. Has anyone been able to do this? Thanks. 回答1: Capabilities.os and Capabilities.manufacturer are probably sufficient for identifying an iOS device (iPhone, iPod, iPad, as well as their generation). On Android, the platform you specified, these properties are too general. In my testing, manufacturer is "Android Linux" and os is "Linux" plus numbers indicating the exact Linux version.

Adobe Air: scroller throws error when changes focus between different applications

自古美人都是妖i 提交于 2019-12-31 01:43:46
问题 TypeError: Error #1009: Cannot access a property or method of a null object reference. at spark.components::Scroller/focusInHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:2139] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:9905] at spark.components::RichEditableText/setFocus()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\RichEditableText.as:3126] at spark

ComboBox Text Formatting through AS3

人盡茶涼 提交于 2019-12-31 01:11:09
问题 I am developing an AIR application and I need to change the font size of the text that is displayed in the dropDown List as well as the main text on the comboBox. My ComboBox is quite big in size but the text displayed in it is very small. I tried using the setStyle method by passing a TextFormat into it like : cmbEmployee.setStyle("textFormat", txtform); but it didn't work. Although the same method works well with a TextField. Can somebody help ? 回答1: A ComboBox is a container that contains

Is it possible to embed or load SWFs when making iphone apps (Is it allowed by Apple)

荒凉一梦 提交于 2019-12-30 03:33:05
问题 I am a little confused on whether to embed swfs or load them when making apps for the iphone. Does anyone know what are the advantages of each (which is preferable to use)? I know that embedding swfs should be a little faster than loading them but is that all? Also and this is kind of important, I read that Apple will reject any app with external swfs?? Is that indeed correct? If so, will embedding or loading said swfs solve this problem? Thanks in advance EDIT: after some searching around,

Flash Builder launch failed - invalid application descriptor: Unknown namespace

落花浮王杯 提交于 2019-12-29 01:58:45
问题 I'm having difficulty getting a Flex mobile project to run on my machine. When I try and run the project I get the following error: Process terminated unexpectedly. invalid application descriptor: Unknown namespace: http://ns.adobe.com/air/application/16.0 Launch command details: "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0\runtimes\air\win" -profile mobileDevice -screensize

Download a file with Adobe AIR

元气小坏坏 提交于 2019-12-28 05:34:52
问题 How do I download a file from the internet in a Flex based AIR application. I tried using a file with url set to the address, but I got a file does not exist error when I tried to save it. And it is really hard to google for help on this issue. 回答1: You want to choose from 2 api combos to accomplish this. Version 1 is URLLoader and FileStream Using this combination of class, you would load the file from your server in to air via the URLLoader object. This will download the file in to memory

Communicate between two Adobe AIR windows

馋奶兔 提交于 2019-12-25 18:26:35
问题 I am building an Adobe AIR (HTML/JavaScript) app for a client who wants to display a game interface on two screens. One screen is where the user will interact with the game itself, the other screen (shown on a projector) will show the game to an audience. The contents of screen 2 is NOT the same as screen 1, so it's NOT a case of mirroring. An example of this, is a bingo game where the user will click buttons on screen 1 to pull out numbers, etc. And screen 2 will just show the number grid

Adobe AIR - Garbage collection and system.gc()

社会主义新天地 提交于 2019-12-25 12:42:26
问题 I'm building an Adobe AIR desktop app with Flash CS5 that makes a lot of use of bitmapdata, bytearrays and base64 strings. After a while the memory usage of the app doubles. Is it recommended to use system.gc() to free memory at that point or is that bad practice? Thanks. 回答1: system.gc is a debug only functionality in AIR and Flash player. I think the better thing is to recycle bitmapdata and other objects if you can to avoid gc, and if not call bitmapdata.dispose() and bitmapdata = null as

is it possible to pin AIR app over any opened windows?

旧城冷巷雨未停 提交于 2019-12-25 08:53:48
问题 I need to pin AIR application over other windows, I mean, regardless if AIR application is in focus or not, it must not hide, it always must be shown, whatever other program I activate or work with, AIR application must be over every window always. Is it possible? If it is, please show me the function (example code will be better :) ) which does it, incase if AS3 has one. 回答1: You're looking for the alwaysInFront property of the NativeWindow class: The alwaysInFront property specifies whether

Custom AS3 Class not Updating

这一生的挚爱 提交于 2019-12-25 08:26:22
问题 I've had a similar issue to this, but the means that I solved the last one are not working here. I have a custom class that consists of 12 separate .as modules. They're declared in the document class as follows: import trailcrest.v1.s3.averta; import trailcrest.v1.s3.chronos; import trailcrest.v1.s3.eripio; import trailcrest.v1.s3.fabrilla; import trailcrest.v1.s3.gradua; import trailcrest.v1.s3.lingua; import trailcrest.v1.s3.navigare; import trailcrest.v1.s3.pedem; import trailcrest.v1.s3