air

Run BAT file from Adobe AIR?

To package an .air file into a native installer you have to use a batch program called adt. The command on Windows will look something like this: C:\Users\jisaacks>"C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.1.0\bin\adt" -package -target native "D:\DEV\Flex4\Workspaces\AIR Native Packager\AIRNIP\AIRNIP.exe" ...

Flex 3 & Air 2: Automatically detect when files on a directory are updated

Hi: A crazy idea just dropped from the sky and hit me in the head xD. I was wondering if it is possible to make and App capable of listening when the user "adds" new files to a directory. Example: The User opens up our Application. The user adds new files on the desktop (using the Microsoft Explorer). Our application automatically de...

read MAC address of machine from Adobe AIR

hello, i want to read MAC address of machine from Adobe AIR. I am using flex 3 and AIR 2. how can i do this the main purpose is i want to install that product in only one machine ...

Autoupdating AIR apps on Linux without prompting for sudo password

Hey there overflowers, Maybe that's more of a Linux question than an Adobe Air one, but there you go: I have an AIR 2 app that does auto-update in the background, with no need for user interaction. It uses Air's own ApplicationUpdater framework (the one that doesn't require a UI) - all goes well until the package gets downloaded and nee...

Can I develop for Android and iPhone with Adobe AIR if I don't care about the App Store?

As far as I understand, applications made with Adobe AIR have been blocked from the App Store. If I wanted to utilize AIR anyway to create a cross-platform app (for iPhone and Android) would it be possible to distribute the apps outside of the App Store? I have very little experience with the iPhone, but I know that in Android you can t...

How can I make an mx.controls.Alert centered on a <s:Window/> component

I have an mxml component "PresentationWindow" that is for brevity's sake, simply: <fx:Script> //... functions here will be explained below </fx:Script> <s:Window> <mx:Canvas id="presentationCanvas" width="100%" height="100%"> <mx:Button label="Test" width="100" height="25" left="0" top="100" /> </mx:Canvas> </s:Windo...

AIR modal screen

`Hai, I am developing an AIR application where i need to display a Modal Window. The screen should fill the entire desktop including the Task Bar. If the user wants to exit the screen, he need to press Windows+D option or activate Task Manager. Can any one post some sample code over here? Thanks in Advance!!! ...

Get full URL from HTTPStatusEvent

Hi I'm using loader.addEventListener(air.HTTPStatusEvent.HTTP_RESPONSE_STATUS, onLogin); function onLogin(e) { air.trace(e.responseURL); } to get the URL to which URLRequest goes after redirection, but all it returns is http://domain/redir.html and missing hash data which has some important information. hxxp://domain/redir.html#{id:v...

Workflow for porting jQuery site with PHP/MySQL backend to Adobe Air?

It looks like Adobe Air has some sort of support for jQuery, so I'm wondering if the workflow for porting to Adobe Air might be more automated than having to rewrite everything.. I'm fairly new to Air, so if so - what are the points of automation, and what are things that should not be automated (in conversion)? Are all jQuery functio...

Can we build any application in Flash/ Flex/ Flex AIR so that it capture particular flash screen which is runnig on desktop?

Hi, Please tell me the possibility, Can we build any application in Flash/ Flex/ Flex AIR so that it capture particular flash screen which is running in a browser just like a print –screen? Suppose I have a flash running on my screen. The intention is to capture the current state of the flash and upload it like a photo. If, I want to s...

Static layers missing when loading a flash generated swf using swf loader in AIR

We have a Flash game which need to be loaded and played from an AIR app. using the swf loader, the game swf is loaded into the AIR app. But the static background layers of the swf are not appearing in the loaded game. Those graphical elements which are generated via action script only are appearing. When we are playing it independentl...

Is there a command line utility that can listen for OS-wide keystrokes and tell me via stdout?

I'm developing an app and I'd like to trigger functions in my app via keystroke combos when it's not in focus. Because I'm developing my app in AIR, I do not have access to listen to global Keystrokes. However, I can receive STDOUT from an application. So, I'm looking for a utility that can give me this ability. I'm looking for both Win...

Reading CSV/xlsx file in FLEX AIR

HI, I have a requirement to read CSV/Xlsx file in my FLEX AIR. var strFilePath :String = File.applicationDirectory.nativePath + "\Test.xlsx"; var recurFile :File = new File(strFilePath); var stream :FileStream = new FileStream(); stream.open(recurFile, FileMode.READ); var content :String = String(stream.readUTFBytes(stream.bytesAva...

Adobe Air encryption of mp3 file with as3crypto only encrypts the first few bytes

I am using the as3crypto library to encrypt mp3 files in an Adobe Air application. The code below runs without error but I realized that only the first few bytes of the mp3 file are getting encrypted but not the whole file. I have no idea what’s the problem. Could someone please be so kind and have a look at my code below? import com.h...

Does adobe AIR support jQuery?

Anyone knows this? ...

Adobe AIR default browser action

I am working on air project based on html/javascript support. I have created undo/redo system on javascript classes, but it is interfered by browser (webkit) own undo(ctr+z) action (it focuses on last modified input element). Can I somhow turn off browser default behavior? ...

how can I read the version from application descriptor file

So I have a basic application descriptor file for my AIR app. It looks something like this, shortened for sanity: <?xml version="1.0" encoding="utf-8" standalone="no"?> <application xmlns="http://ns.adobe.com/air/application/2.0"&gt; <version>1.0.10</version> </application> Now I want in the application to display the version, but I...

Manipulate iFrame content in Adobe AIr

Is it possible in Adobe Air to manipulate a website loaded into an iFrame? Like say I want to automate filling out a repetitive form that I need to fill out on a regular basis with data that I have stored into a database. I want it to fill out the fields that I know the selectors of and make it click the submit button. Possible? If n...

How to run "ipconfig" and get the output in adobe AIR in windows?

import flash.desktop.NativeProcess; import flash.desktop.NativeProcessStartupInfo; if (NativeProcess.isSupported) { var npsi:NativeProcessStartupInfo = new NativeProcessStartupInfo(); var processpath:File = File.applicationDirectory.resolvePath("MyApplication.whatever"); var process:NativeProcess = new NativeProcess(); ...

AIR application invocation from browser (HTML)

I am trying to launch my adobe AIR application from the browser. I have the following set: application.xml <allowBrowserInvocation>true</allowBrowserInvocation> AIR App <html> <head> <title>New Adobe AIR Project</title> <script type="text/javascript" src="lib/air/AIRAliases.js"></script> var globalinv...