air

How do I ping from Flex - AIR?

霸气de小男生 提交于 2020-01-01 10:53:17
问题 I'm bored cause my development server is down and I'm running the command prompt to ping the server indefinitely so that I'll see when they stop timing out and know that I can work again. In the meantime I wanted to make an Air app that will do this for me, so I can have it chirp or alarm or do something when it starts to be able to connect to the server. So I need to start with having AIR do the ping, does anyone know how to do this? I can't find any help on it. I can't use the HTTPService

What is the maximum amount memory Adobe AIR can utilize?

梦想与她 提交于 2020-01-01 08:24:27
问题 I've been doing some rapid prototyping for a game I'm thinking of building. one of the main things i want to do is map generation for a tile type map. While generating the map i end up using large amounts of ram. I'm building the map as an array of random integers for my test. When i try to generate maps of a large scale flash gives me the out of memory error: Error: Error #1000: The system is out of memory. I've already figured i could write to a file instead, to solve that problem. but does

Pinless OAuth on Adobe AIR for Android

白昼怎懂夜的黑 提交于 2020-01-01 06:25:26
问题 I got pinless OAuth working on Adobe AIR for Desktop, iOS, but not Android. For some reason, we're not getting the oauth_verifier (which contains the sha'd code) in StageWebView on an Android device. Any clue? Here's the debug for on desktop and on Droid 2; notice the 3rd line in the Droid 2 trace output which is missing all the OAuth variables after the callback URL. Desktop: AuthorizeTwitterService::onComplete, data: oauth_token=De2k4zANjzAhT3hXV4eqOfTVxJsshVIJjgsuwPMUg8&oauth_token_secret

LoaderContext and ApplicationDomain changes with Adobe AIR?

荒凉一梦 提交于 2019-12-31 22:28:09
问题 I'm currently experimenting with loading external SWF files from both an standard AS3 application, and an AIR application. It seems that the AIR application doesn't act the same way a standard SWF run by the Flash Player does. According to the documentation, the applicationDomain property of LoaderContext is usable in an AIR application too, but it just seems to be not working. I have the following code : package { import flash.display.Loader; import flash.display.LoaderInfo; import flash

LoaderContext and ApplicationDomain changes with Adobe AIR?

断了今生、忘了曾经 提交于 2019-12-31 22:27:25
问题 I'm currently experimenting with loading external SWF files from both an standard AS3 application, and an AIR application. It seems that the AIR application doesn't act the same way a standard SWF run by the Flash Player does. According to the documentation, the applicationDomain property of LoaderContext is usable in an AIR application too, but it just seems to be not working. I have the following code : package { import flash.display.Loader; import flash.display.LoaderInfo; import flash

How to run an external SWF inside a Flex Application?

匆匆过客 提交于 2019-12-31 10:53:11
问题 EDIT: Due to the answer I change the code posted. I've added the Security.allowDomain("*") line and that line throws me an error. So, how can that be made? I want to run an Action Script 3.0 Application into a Flex Application. To do this I've done the following: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication windowComplete="loadSwfApplication()" xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ private function loadSwfApplication() { // The next line throws me

Adobe AIR - Custom Preloader with Image

泪湿孤枕 提交于 2019-12-31 07:39:45
问题 Folks, I have designed an Adobe AIR application. I want to show some preloader on it, before it opens up. Can anyone guide me with tutorials on preloader aimed for AIR specifically or any already built in ones? Thanks 回答1: With AIR I can think of a couple of ways to achieve that: 1. with native windows Set the 'visible' attribute of your main WindowedApplication to 'false'. On 'creationComplete' event spawn a new Window that contains your splash screen. Perform the necessary logic before

How do you define custom behaviours for the Android phone's volume buttons using Adobe AIR (ActionScript 3)?

╄→尐↘猪︶ㄣ 提交于 2019-12-31 04:12:12
问题 For buttons like the MENU or BACK button you can just add a listener for KeyboardEvent and check if the event keyCode is Keyboard.BACK or Keyboard.MENU. However I don't see anything for knowing if the phone's volume buttons were pressed. Is there a way to listen for volume up and volume down keyUp/keyDown events in AIR (ActionScript 3)? 回答1: Nope. There isn't any support for detecting the volume buttons. (In AIR 3, you can write a native extension to access native features that aren't

Error SDK component at air/android/device/runtime.apk is out of date

喜欢而已 提交于 2019-12-31 02:59:28
问题 I'm getting the following error when packaging AIR application. Error occurred while packaging the application: SDK component at air/android/device/Runtime.apk is out of date. This occurs on the last step when creating a release build. 回答1: I'm not sure what the issue is but it only happens sometimes but if I wait or if I try again it works. Maybe Flash Builder refreshes on a cycle and I'm running it too often or if I wait too long between moving through the steps it's expiring? I'll post

AS3: URLStream saving files to desktop?

六眼飞鱼酱① 提交于 2019-12-31 02:49:36
问题 i found a few scripts online and combined them to this. I want to download files from the web to my local harddrive. Any idea what i'm doing wrong? var fs:FileStream; var stream:URLStream; var _output:Boolean = false; init(); startDownload('http://www.teachenglishinasia.net/files/u2/purple_lotus_flower.jpg'); function init() { stream = new URLStream(); stream.addEventListener(ProgressEvent.PROGRESS, _dlProgressHandler); stream.addEventListener(Event.COMPLETE, _dlCompleteHandler); stream