air

As3 Graph API Logout

梦想与她 提交于 2019-12-22 18:28:58
问题 i'm developing an application that'll be played by different's users, but i'm using the as3 graph api for authenticating users and posting on their wall, and i need to logout each user, before next user start his session on as3 graph api: http://code.google.com/p/facebook-actionscript-api/ I search to force FB to ask for login's info but after a logout when login again, API skip the step and log, on the last user session. 回答1: This is an issue that's been continuously revised by

Save a download without filereference

半世苍凉 提交于 2019-12-22 18:07:42
问题 Is there anyway to download a file with the URLLoader and then save it to the disk without using filereference or anything that uses a dialog? This is what I have but isn't working: public function onDownloadComplete(e:Event):void { DownloaderProgress.label = 'Download Done'; var loader:URLLoader = URLLoader(e.target); var rtsFile:File = File.applicationStorageDirectory.resolvePath("RTS.zip"); var rtsStream:FileStream = new FileStream(); rtsStream.open(rtsFile, FileMode.WRITE); rtsStream

s:WindowedApplication is empty and does not initialize/show child components

别等时光非礼了梦想. 提交于 2019-12-22 12:27:45
问题 I have quite some experience with Flex and I am just starting to write my first AIR application and would like to use as much Spark as possible here. So I started withe a simple Hello World application: <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="red" initialize="initializeHandler(event)"> <s:Label text="Hello World"/> <s:Button

Problems after overlaying AIR SDK on Flex SDK

只谈情不闲聊 提交于 2019-12-22 12:19:11
问题 I'm trying to overlay AIR SDK on Flex SDK on Windows machine but I am encountering issues afterwards. I tried overlaying with several official versions of both SDKs (including Apache Flex SDK) and followed the steps mentioned here: http://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html However, after pasting the AIR SDK contents in the Flex SDK folder and overwriting existing files FlashBuilder reports the following Errors when I change projects SDK: "Could not resolve <mx

AIR and sqLite : if table exists conditional

余生长醉 提交于 2019-12-22 11:08:41
问题 How do I get a Boolean value in AS3 whether a table or an entry exists in the database? 回答1: As opposed to finding it manually with SQL you should use the built in Schema information classes/functions. Here is an example of how it would work. public function doesTableExist(connection:SQLConnection, tableName:String):Boolean { connection.loadSchema(); var schema:SQLSchemaResult = connection.getSchemaResult(); for each (var table:SQLTableSchema in schema.tables) { if (table.name.toLowerCase() =

Android App ID prefix problem

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 09:56:30
问题 I am building an Adobe Air for Android App and I have a big problem, i published an app to the android market using an old flash air extension that saved the app id with a prefix 'app.' Now that i have upgraded the extension it now saves the app id with a prefix 'air.' What this means is that I can no longer publish updates to my applications; so what can I do? The problem with using the outdated extension is that after publishing the update the user is not able to open the app until the

Reading JPG into BitmapData in ActionScript 3 (JPG is inside APK file)

坚强是说给别人听的谎言 提交于 2019-12-22 09:49:00
问题 I'm using Adobe AIR to make APK file for my Android phone. Inside the APK package there is a SWF file and in the same folder as the SWF file there is a subfolder named "images", which contains image.jpg. I'm trying to read that image.jpg into the program at runtime but can't get the location of it (the program doesn't seem to find it. Here's what I'm trying: var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); loader.load(new URLRequest(

How can I detect the Android OS version in Adobe AIR?

不羁岁月 提交于 2019-12-22 09:18:05
问题 On iOS, Adobe AIR's Capabilities.os may be something like "iPhone OS 5.1.1 iPad3,1 " - very clearly identifying the OS version as well as the device model. On Android, it looks more like " Linux 2.6.35.7-59465-g42bad32 ". Wikipedia lists the following Linux kernels for android versions: 2.6.29: 1.6, 2.0, 2.1 2.6.32: 2.2x 2.6.35: 2.3x 2.6.36: 3.x 3.0.1: 4.0x Are these set in stone or will some systems report different Linux versions? Is there a better way to determine Android OS version using

Remove icon gloss effect from an Adobe Air iOS app?

﹥>﹥吖頭↗ 提交于 2019-12-22 08:28:26
问题 How do you prevent iTunes from adding the default gloss effect when compiling an iOS app using Adobe Air? Using Adobe Flash CS6. . . . 回答1: Add the following to the InfoAdditions element in the application descriptor file: <InfoAdditions> <![CDATA[ <key>UIPrerenderedIcon</key> <true/> ]]> </InfoAdditions> from : http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d129907d2886-8000.html 回答2: This will require you to add a boolean UIPrerenderedIcon key to the app's info.plist file and

How to use C# with AIR?

為{幸葍}努か 提交于 2019-12-22 06:37:03
问题 I have some basic experience in making Flex sites, but I think I have more use for Flex in making a desktop AIR application. Anyway, I was wondering if it is at least possible to use C# alongside Actionscript/AIR? I can't find any example of this. Also, can I use custom Flash components in a Flex app? I know I can use Javascript components. Thanks 回答1: Your options with AIR are limited to HTML/JS, Flash/ActionScript or Flex. There's no support for other languages and frameworks. 回答2: You can