air

touch events vs mouse click events using actionscript 3

让人想犯罪 __ 提交于 2019-12-20 09:42:16
问题 Just wanted to ask if there is any advantage for either using mouse click event or touch tap events, when writing apps for mobiles or tablets (for the iphone especially)? I know that both of them should work fine, but in term of performance, is anyone better? Are there any things I should be aware of when choosing either? By the way am using actionscript3 to implement the app. 回答1: This is probably the best documentation on Adobe AIR touch support: http://help.adobe.com/en_US/as3/dev

Flex performance considerations

╄→尐↘猪︶ㄣ 提交于 2019-12-20 09:38:16
问题 What are the main key-points a Flex developer should remember in order to improve performance of Flex applications? The ones which come to my mind are: extending ItemRenderers from more lightweight base classes: i.e. UIComponent using suspendBackgroundProcessing set to true for animations using ArrayLists instead of ArrayCollections where appropriate. useVirtualLayout in Spark DataGroups (unfortunately this step requires Scrollers to make this advice effective) SQLight performance

Air for Android: Animation causes lagging in my game

本小妞迷上赌 提交于 2019-12-20 07:33:01
问题 I'm making a game in cs6 air for android. When I make animations for my game, I use the 3D software blender. In blender I make an animation, and then render it as a sequence of PNG images, which I import to Flash CS6. So if I'm making a walk animation for my character, I make around 30 png images i blender, and import them as a sequence. This works pretty well most of the time, but I have a problem with some of the animations I made. As an example I have an animation of an enemy that explodes

SQL Error :“No such table”

被刻印的时光 ゝ 提交于 2019-12-20 06:55:49
问题 I am trying to troubleshoot why my code returned null for all my queries and finally found that sql query returns nothing. I created a new AIR document (s:WindowedApplication) with minimalistic code: <fx:Script> <![CDATA[ import mx.events.FlexEvent; private var sqlConnection:SQLConnection; private var select:SQLStatement; private var databaseFile:File; protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void { var dbPath:String = "Movie Manager Settings/moovioDB2

Adobe Air SDK Resize Window on Page Load

本小妞迷上赌 提交于 2019-12-20 06:42:37
问题 I need to resize an adobe air sdk window on an html page to a certain pixel height and width. Not looking for the initial window in the app descriptor. I'm not so good at coding so could someone give me the code? I think it will be a javascript function. Thanks in advance. 回答1: Didn't realize I could just use normal javascript to do this: <body onload='window.resizeTo(width,height)'> 来源: https://stackoverflow.com/questions/12378574/adobe-air-sdk-resize-window-on-page-load

NativeProcess API Java Debugging?

我与影子孤独终老i 提交于 2019-12-20 05:28:08
问题 What is your way to debug Java side when nativeProcess.standardInput.write method is invoked by Flex side? I know that it is possible but don't know how? 回答1: To be able to attach your Eclipse debugger to a running Java process you need to start that process with the following Java options… -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n Once you have done this and have restarted the server, you can use your Eclipse to attach to the running process. From Eclipse go to

AIR Loading server hosted swf into same sandbox

Deadly 提交于 2019-12-20 03:39:05
问题 I have an AIR App I'm working on and need to load a swf(always from localhost) which will access some methods in it's parent and vice versa. I'm not concerned with opening gaping security holes in a desktop app though. I've been searching all over but keep hitting walls with each implementation out there. My current setup loads in the swf and it plays but I get a small error from the sandbox since I'm not in the same one as the app. Does anyone know how to get past this error so there is

save image in a directory in applicationStorageDirectory

為{幸葍}努か 提交于 2019-12-20 03:34:09
问题 I was trying to save an imagefile to a directory in applicationStorageDirectory of my air project. Created the directory first var imageDirectory:File = File.applicationStorageDirectory.resolvePath("vispics"); if (imageDirectory.exists) { Alert.show("Directory Already Exists"); } else { imageDirectory.createDirectory(); Alert.show(imageDirectory.nativePath); } The next part is saving image from my cam right now it saves to the applicationStorageDirectory. Here is how i do it var randInt:int =

Access ViewController in iOS-Native Extension for Adobe Air

こ雲淡風輕ζ 提交于 2019-12-20 02:57:22
问题 Short: The Android-API for Air-Native-Extensions provides a getActivity() on the Context-Object. I am looking for a way, to get the current ViewController in iOS-Native-Extensions Long: We need to extend Air with more than just some iOS-API-Calls to access vibration etc, but want to display a View (MPMediaPickerController to select a File from the iTunes library). In the Keynote to native extensions on Adobe MAX 2011 (http://tv.adobe.com/watch/max-2011-develop/how-to-extend-your-mobile-air

AIR - Open files on Android (openWithDefaultApplication() alternative)

霸气de小男生 提交于 2019-12-20 01:50:33
问题 I'm currently trying to open a downloaded file (.txt e.g.) on Android (2.2) programmatically through Adobe's AIR SDK. On desktop AIR applications there is an API called File.openWithDefaultApplication(); , which works fine. Unfortunately this call doesn't work on Android based devices. Do you guys know an alternative function to manage this - or point me in the right direction? I guess it couldn't be that hard, but the relating information is quiet rare on Adobe's Knowledge Base ;-) Thanx in