adobe-air

Dispatching events from webkit for consumption in Adobe AIR

I have a webkit HTML component in my AIR application, and would like to be able to respond to events such as onclick and ondoubleclick generated from the HTML in the webkit component. Is there any way to accomplish this? ...

flex textflow text highliter

Hi, I have a flex datagrid in my application. In that I have a itemrenderer as textflow on canvas. Now I would like to implement Find/Replace functionality on the itemrenderers of the datagrid. Thanks in advance. ...

Working with Javascript and images in AIR's HTML component

I'm having the following problems using Javascript and img tags in the standard HTML component in AIR: 1- Javascript in the xml literal causes problems (even though it shows using them here: http://livedocs.adobe.com/flex/3/html/ProgrammingHTMLAndJavaScript_07.html#1032824 2- Using html.loadString(...<img src="/tmp/me.jpg" />...) does ...

flex air include a directory with the installer

Hi, I am creating an AIR application using Flex. In it I need 2 directories downloads & uploads. These directories will have downloaded files & uploaded files. But the problem is I am not able to create these 2 directories programmatically & also I am not able to include the 2 directories with the installer in the application directory...

Designing code for a duo Website + AIR desktop App

I want to use AIR to create an OFFLINE version of a "webapp" kind of website (lots of ajax, front end code). Haven't been much further than the HelloWorld example, I keep wondering: how do you design your code, to maximize code reuse between the website (say in php or Java or .Net), and the AIR app ? Can you actually re-use 100% of th...

ALT+ shortcuts make a "beep" sound

I am struggling with an air flex application. Whenever I click ALT+something, vista makes a sound. I suspect that it is connected with non-existing menu bar. Any ideas how to disable my app responding to shortcuts where alt is involved? Here's the code: stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp); ... public function o...

How to access Actionscript from Javascript in Adobe AIR

I have an AIR application written in html/javascript and I want to use the Actionscript print functions but I have no experience in Actionscript for AIR. Where do I put the Actionscript code ? Does it go into an mxml file or does it need to be compiled into a Flash application. Where do I put it and how do I include it into the html doc...

Can you unpack an Adobe AIR app?

I was wondering if/how an Adobe AIR app could be unpacked so I can check out how it was implemented. Do I need the SDK to unpack it, or is it a renamed .zip file like a .gadget file? ...

How to use C# with AIR?

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 compon...

Why are my AIR apps packaged on linux being corrupt when used on the mac ?

I have a need to generate my air app online on my linux webserver. I create a signature and package the app up with adt and then download it to my desktop mac and try and install it, it says the package is corrupt and to get another copy. But when I compile it on the mac (using the exact same commands to adt) it installs and runs fine. ...

JSONP Callbacks in Adobe Air

I am having trouble figuring out a way to get some data back from a url in adobe air. It seems that there are security restrictions in air such that doing a normal callback will not work. So something like: $.getJSON( requestURL, function(json) { $('#response').append("working"); } ...

Where does Adobe AIR look for the proxy settings in Ubuntu Linux

I am building an AIR app that makes a call to a remote server within the company network The Adobe AIr runtime seems to be looking at the proxy settings of the OS.I have added the location to the No_proxy variable in bashrc under my user id. whenever i call adl to run the code it seems to be accessing the proxy server , causing time o...

FileStream.truncate() doesn't work after calling FileStream.readUTFBytes() (Adobe AIR)

I'm trying to read an xml file into memory, add a node, then write over the original file. The following code works just fine (it clears the file, then writes the new bytes over the top): var stream:FileStream = new FileStream(); stream.open(file, FileMode.UPDATE); stream.position = 0; stream.truncate(); stream.writeUTFBytes("<?xml ver...

Access system environment variable in AIR?

How can one access a system environment variable in Flex/AIR (say %appdata%, %userdomain%)? ...

Accessing an iframe's contents in Adobe Air

I have been having a lot of trouble figuring out how I can access the content within an iframe in Air. Here is some example jquery code that I have been testing with. $(document).ready(function(){ $("#frame").ready(function(){ air.trace($("#frame").contents().find("body").html()); air.trace(window.frames["frame"].innerHT...

How can I send date object from Adobe Flex to RESTful rails?

Hello, I'm working on an Adobe AIR project that use the Ruby on Rails as RESTful web service as the back end. I have found a lot of examples that show how can I send the data to operated by Rails. but I stuck at date object, which will be very useful if I can send Actionscript's date object to Rails via XML or whatever and Rails can und...

What is different between below method on flex in action script3 ?

NativeApplication.nativeApplication.exit(); - this method is used for exit the application of flex/air . application.close(); - this method also used for exit the application of flex/air - So what is different? ...

Problems printing from html AIR app - error and printout cropped

I'm trying to print from a html/javascript AIR app. The code I'm using is: var pjob = new window.runtime.flash.printing.PrintJob; if (pjob.start()) { var poptions = new window.runtime.flash.printing.PrintJobOptions; poptions.printAsBitmap = true; pjob.addPage(window.htmlLoader, null, poptions); pjob.send(); } I...

How can the Adobe AIR installer itself require AIR?

I downloaded the AIR_Win_installer_files.zip file in order to do a side-car AIR installation. I created a directory (AIR_bundle) and unzipped the downloaded file into that. In that directory, I end up with: Adobe AIR Installer.exe Adobe AIR/ where the latter is a sub-folder containing lots of other files. On the command-line, I exe...

Adobe AIR non-Administrator application installation/upgrade on Windows

Is there any way to allow non-Administrator users to install, upgrade or uninstall an Adobe AIR application on Windows? I've made an Adobe AIR application and packaged it as a .air package using the standard AIR mechanism for creating deployment packages. If a normal or Power user tries to install this AIR application, the Application E...