air

Stick element to bottom-right corner (AS3 - Adobe AIR)?

Hello I'm creating a simple AIR app with resize-functionality. Of course i need to position a resize-arrow to the bottom-right corner. Here's my code: stage.addEventListener(Event.RESIZE, handleResize); function handleResize(e:Event):void{ resize_btn.y = stage.stageHeight-resize_btn.height; } This doesn't work, my button gets out...

Adobe Air Debugger not visible

Have a little conundrum, when I debug my air app. It goes through the build process and seemingly launches. I can see the process in windows task manager, but can not see the actual application. Kind of strange I know. If anyone has had the same problem and can offer a shortcut to success, I'd much appreciate a pointer. Thanks ...

TestComplete and Adobe Air

Does anyone know if TestComplete can be used with Adobe Air applications? ...

Smallest executable for Windows

Hi I need to create a very simple GUI application for Windows(open a file, do some changes based on user input, upload the file to an intranet server). The client company has the latest release versions of Java SE, .NET and Adobe AIR installed on all their machines. And their #1 requirement is to have the smallest possible package for x...

how to load external xml using air application for flash programmer ?

hi, i have faced this problem couple of days ago, while trying to import an external xml file into an AIR application. import flash.net.URLRequest; var ldr:Loader = new Loader(); var url:String = "http://willperone.net/rss.php"; var urlReq:URLRequest = new URLRequest(url); ldr.load(urlReq); ldr.addEventListener(Event.COMPLETE , f...

encrypting assets (video files) in Adobe AIR

Hi I am trying to create a video player in Adobe AIR. I want to encrypt the video files so that they are not sharable outside the player. I don't want to jump through hoops to create a rock-solid system but something simple that just prevents 90-95% of the users from sharing the content. I have been through a related question on SO at ...

Why does Printing from Javascript in Air happen out of order?

I am trying to print from an Adobe Air App that embeds an AJAX app. The print function looks like this: function printPage() { asyncSetupForPrint(printCallback); } function asyncSetupForPrint(printCallback) { synchronousMethods(); if (printCallback) printCallback(); } function printCallback() { var pjob = new window.runtime.f...

Adobe AIR system tray drop target

Hi there, I would like to make a system tray icon from Adobe AIR app a drop target. Is this even possible ? Digging hard, but without success so far. Thanks ...

Security behaviour in Adobe Air

Hi everyone! I am trying to load external SWFs in my Adobe AIR App. The loaded SWF is trying to access an URL to retrieve some informations via XML. When starting the SWF by itself it works fine. When loading the SWF from the File.applicationStorageDirectory i will get an Security-Error because the loaded App is executed in a local-with...

Determining when database zip is unpacked

I am fetching a db zip on initial startup of an AIR app (after 1st install), which I then unpack via FZip. After this operation I immediately need to load data from the generated sqlite db, which fails since I seem not able to determine when the zip is completely unpacked and/or the sqlite has been created. Any suggestions? Thx! For c...

API for Speex codec in Flash/Flex

With AIR 2 allowing access to mic data, it's possible to save/process audio locally. Adobe provides a WAVWriter example but is there any API access to the Speex codec? ...

Play video while downloading into local disk [AIR]

Hello guys, Using NetStream, I can create progressive video player. But can I save the downloaded chunk to my local disk in AIR?? My first idea is that, download part of file into local disk, let NetStream pointing to that file, and then appends the chunks to that file (FileMode.APPEND) periodically. But it does not work and seems that...

initial caps in actionScript using Regex

I'm trying to do initial caps in actionScript with no loops but now i'm stuck. I wanted to select the first letter or every word then apply uppercase on that letter. Well I got the selection part right, but at a dead end right now, any ideas? I was trying to do this with out loops and cutting up strings. //replaces with x cant figure o...

Why does writeUTFBytes mess up non-english characters?

I'm writing all sorts of multi lingual text to .txt files using AIR's fileStream.writeUTFBytes() For english characters everything works perfectly. But as soon as there are chinese, arabic or any other non-english characters the sentences are totally messed up. For example: 对着大叔摄影师的确没爱.... becomes ÂØπÁùħßÂèîÊëÑÂΩ±Â∏àÁöÑÁ°ÆÊ≤°Áà...

Missing Text in Air Application Flex4+Mac OSX Snow Leopard

I am running the same AIR application under windows, linux and Mac OSX Windows and Linux look fine, but under mac OS-X the controls are not showing any text. Button, Tooltips, Labels, Check boxes, everything is blank. I just ported that app to Flex 4. Flex 3 versions of the same app on the same OSX machine works. How can I get controls ...

Flash Catalyst - Export Component to FB

Hi, I'm working on an AIR project using Flash Builder. There's a couple of component that I could see would be easy to generate using Flash Catalyst. I can't see any way to export a Flex component/library (SWC) of some UI elements from Flash Catalyst. All I can see is that I can export an entire project from there and import it as a...

Is it possible to open a URL in an external browser from within HTML component?

I'm loading a webpage inside a HTML component in AIR. By default, when something is clicked the next page is loaded inside the HTML component itself. I want the links from that page to open in an external web browser. Is this possible at all? ...

WPF Dragging a window to the desktop

I've seen some nice Adobe AIR demos where a component of the application is dragged outside of the application and dropped onto the desktop and then continues to run in a new window. This seems to be facilitated by the NativeDragManager class. Is there anything similar in WPF? How would you go about implementing this sort of functionali...

What is responsible for caching the HTTP requests sent via AIR desktop application?

When dealing with a flash application that will run in a browser, it's obvious that the browser will cache some of the HTTP requests. But when dealing with a desktop AIR application, what's caching them? Is it the OS, or the AIR container? Reason I'm asking is that I've recently dealt with a really ugly and time consuming memory leak th...

How to open multiple encrypted database adobe air?

I need to open multiple encrypted database by using one sql connection. I use "attach" method for attach the database with opened connection. But it throws the error.“Error #3125: Unable to open the database file.” even I gave the valid encryption key. Please gave some ideas. Thanks in advance. ...