air

Connecting lines (while dragging) in Flex/Actionscript

喜欢而已 提交于 2020-01-04 17:26:25
问题 I have a mx:Canvas element that contains several mx:Panel elements. I want to be able to draw a line connecting two such mx:Panel's in such a way that the line continues to connect the two mx:Panels when one or both get dragged around. It seems like something that should be trivial to do, but I haven't been able to figure it out. In effect, this is the problem. alt text http://img150.imageshack.us/img150/5656/ishot1eu3.jpg Since the updates only occur when the Panel reaches it's final

How can I get stacktrace for Adobe AIR global runtime errors in non-debug mode?

不羁岁月 提交于 2020-01-04 14:31:13
问题 The new version AIR gives us the ability to globally capture run time errors and handle them. The problem is that it doesn't have the stacktrace or any helpful information about the error other than the error id and error message and name. For example it may tell me that a null pointer exception has happened but it will not tell me where or which method or anything. The debug version of the runtime gives us all of that but when the app is deployed to customers it is not running on the debug

Adobe Air: convert sqlite's result [object Object] to String?

馋奶兔 提交于 2020-01-04 11:37:56
问题 I am currently trying to do retrieve text from sqlite. I see that the amount of data requested do come correctly, but content, on the other hand, seems to be in an incorrect format. I've tried some conversion: var data:Array = sqls.getResult().data; var stData:String = String(data[0]); Alert.show(stData); // <--- displays "[object Object]" String conversion does not seem to do what I want. I simply want the text from the sqlite database. How can I convert the [object Object] to the correct

Images not displaying on iPad AIR, but display on other iPads

我们两清 提交于 2020-01-04 04:05:27
问题 My images are not displaying on iPad AIRs, but are displaying on other iPads. They are not displaying in Image views or on buttons. Besides my images, the Segmented Control image is also not displaying, although I can still tap on the buttons and segmented control where I know they exist on the UI. I found that background images on my buttons do display, but an image on my buttons do not. Maybe this will help - I think this started after I got the message about required 64 bit support as of 2

Yes/No buttons instead of OK/Cancel in a confirm() dialog?

怎甘沉沦 提交于 2020-01-04 03:40:10
问题 In an Adobe AIR (HTML/JS) app, is it possible to display Yes / No buttons, instead of OK / Cancel in a confirm() dialog? Anything that works with webkit should work. Here's a related question, but all of the answers utilise jQuery, which I don't want to add just for this. 回答1: I don't believe so. In JS, confirm() is specified to only use the OK and Cancel buttons. If you want something more complicated, you'll have to make your own dialog, or use a third-party one that provides your desired

AIR Sqlite: SQLEvent.RESULT not firing, but statement IS executing properly

假装没事ソ 提交于 2020-01-03 17:15:06
问题 Ok it looks likes like I have stumbled upon a strange timing issue... I made a quick SQL wrapper class for executing sql statements. However after .execute() is called, the SQLEvent.RESULT event is never fired, but the new entry in the DB is created as it should be. The really really odd part is if I put a setTimeout() just after calling execute() the event fires as expected.. I hope I'm missing something really obvious here... Here is a link to an example air app: http://www.massivepoint.com

as3 AIR for android - Application-sandbox content ERROR

帅比萌擦擦* 提交于 2020-01-03 13:11:15
问题 THE GOAL: I am trying to allow externally loaded swf files communicate with each other that are locally loaded from the device. I need to be able to have access to vars and functions and objects. I have accheived this while loading swf content from the web here: as3 externally loaded swf from network to control externally loaded swf from network BUT WHEN I GIVE THE USER THE OPTION TO LOAD FROM DEVICE OR FROM ONLINE ... The device swf files can't communicate with each other. Specifically the

Upload file to server in as3

情到浓时终转凉″ 提交于 2020-01-03 06:03:07
问题 How to upload a File to server in as3? I don't want to browse file by using FileReference.browse(). I tried using URLLoader to get the file and convert to byteArray but as I send it to server using URLVariables it gives IOError=2032. I want update database on the server. The structure would be like email (string) sqlite_db (Blob) I have to send both of these variables inside one request. Any idea! 回答1: The upload process is made much easier by using the UploadPostHelper which is a great class

AIR: securityError on OSX (but not on Windows) with URLStream()

社会主义新天地 提交于 2020-01-03 05:22:09
问题 I'm using URLStream to load a file from the harddisk (and I'd like to continue to use URLStream to do so). The file is located in "app-storage:/myfolder/myFile.zip" so I use var f:File = new File("app-storage:/myfolder/myFile.zip"); myStream.load(new URLRequest(f.nativePath)); on Windows this seems to work without problems - but on OS X the URLStream dispatches a SecurityErrorEvent.SECURITY_ERROR with the message: Error #2032: Stream Error. URL: app:/Users/myUserName/Library/Preferences

Best way to show image sequence as a movie in Adobe AIR

冷暖自知 提交于 2020-01-03 05:11:07
问题 I need to show an image sequence as a movie in an Adobe AIR application - i.e. treat lots of images as video frames and show the result. For now I am going to try simply loading them and displaying in a movie clip but this might be too slow. Any advanced ideas how to make it work? Images are located on a hard drive or very fast network share, so the bandwidth should be enough. There can be thousands of them, so preloading everything to memory doesn't seem feasible. Adobe AIR is not 100%