adobe-air

Embed a streaming .swf file inside another Flash or Adobe Air Application

I currently have a network camera that streams video as a .swf (and also as a motion JPEG as well...) and I want to be able to embed the stream inside of either a Flash or Air project that I'm creating myself. The only examples i've been able to find though, require the .swf to be saved as a resource of the project; clearly, this is unde...

System Tray Balloon Notifications from Adobe Air?

Is it possible to make an Adobe Air app create a native windows balloon notification/tooltip? I know it is possible to make a window appear in the corner, but I would like to use native windows notifications. ...

how to detect screen resolution changes dynamically in adobe AIR

Hi, Screen class in actionscript provides the latest total screen bounds and available screen bound, but doesn't allow to attach listener to listen for changes on runtime. is there any way of detecting screen resolution changes on runtime, it is required to size the application whenever screen resolution is changed. e.g. in case when m...

Flash (Adobe Air) Charting Libraries

We are considering developing an application in Adobe AIR. However, one of the criteria is that we are able to support charting in the user interface. Some of the charts are real time (updated periodically in a manner that isn't "jerky" to the user. The application is also stand alone and will not have the use of an http server. Ca...

Flex 4 modules - cannot include classes unless in same folder as the module? What am I missing?

Hi, I am playing with a Flex 4 / Air 2 project, that loads Modules at runtime. I can include intrinsic MX classes in my module and all works fine (eg: import mx.controls.Alert). I can also include my own classes - however, only if the class is in the same folder as the module. eg: <?xml version="1.0"?> <mx:Module> <mx:Script> ...

Flex 3 - Rounded bottom corners on a window?

Hi there, I'm making a flex 3.5a/air2 application and I've made a popup window but I can't seem to get its bottom corners rounded. Setting cornerRadius seems to only affect the top corners. There doesn't seem to be a roundedBottomCorners property like there is for panels, and adding a controlbar with a cornerRadius also has no effect...

Base64 encode and image in Adobe Air

Hi there I am writing an adobe air app in html/javascript and I am trying to base64 encode an image so I can add it to and XML RPC request. I have tried many methods and nothing seems to work. I see that actionscript has a Base64Encoder class that look like it would work, is there any way to utilize this in javascript? Thanks, Jordan...

Can a Flash object in the browser interact with a scanner

I know Flash can work with my webcam. Is it possible for a Flash object in the browser to get a document scanned by a hardware scanner? Will it be different if this will be an Adobe Air application? ...

What benefits does an AIR app have over a Flex browser app?

Please feel free to add multiple answers, each with a single point, to make the voting work well... and don't add something someone else already said. All I know about AIR is you can have local storage, but there must be more to it... offline access is another key one but then you can run a SWF locally if you save it to your PC. ...

jQuery and Adobe AIR conflict

Hi people, I am trying to get this code working -- var loader; $(function() { loader = new air.HTMLLoader(); loader.addEventListener(air.Event.COMPLETE, complete); loader.load(new air.URLRequest('http://www.lilpirate.net/blog')); }); function complete() { $(loader.window.document).ready(functio...

Windowless (not chromeless) Adobe AIR app

What would be the best way to go about building an Adobe AIR app that doesn't have any windows (i.e. exists only in the system tray / dock)? I noticed that the default base tag in Flash Builder is <s:WindowedApplication> which seems to imply there'll be a window. Should I just use <s:WindowedApplication> and call window.hide()? I saw th...

Flex How To Call A Function With A Variable Number Of Parameters?

Let's Say I Have This Class: package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace(getAverage(1,2,3)); trace(getAverage(1,2,3,4)); trace(getAverage(1,2,3,4,5)); } public function getAverage (...numbers) { var total = 0; for (var i = 0; i ...

Adobe AIR and canceling Drag and Drop operations

[[Cross posting from the Adobe AIR forums: (http://forums.adobe.com/thread/707440?tstart=0)]] Hi all, I'm developing an HTML/JavaScript based AIR 2.0.3 desktop application where I want to make use of the File Promises APIs. Here's what my code looks like: var cb = new air.Clipboard(), promises = []; for(var i = 0, l = this._urls.lengt...

Render a pdf file returned as part of a HTTP response in Adobe AIR

My requirement is to render a PDF file which is dynamically generated from a web server in an Adobe AIR application. The user posts some data to the web server. A PDF file is generated at the web server and is returned as the response with content-type : application/pdf I use URLLoader to post the request and handle the response. When...

Adobe Air 2.0 custom class problem

I'm trying to build an air 2 application with cs5 and as3. When I try to do "private var customClass : CustomClass;" inside the class definition of the document class of my fla the constructor of the document class is never called and I don't get any errors or warnings. If I comment out the private var it complies and the trace statement...

How to read excel(2007+ xlsx) sheet using actionscript(AIR)?

How to read excel(2007+ xlsx) sheet using actionscript(AIR)? ...

how to sync the offline database with online database using an application built in adobe air

Hi Everyone , I am a newbie and would like to ask a question regarding adobe air. My client wants an desktop based application. He wants the application to be run standalone on the machine of any user who has downloaded that application from his website. He also requires that what so ever data that has been stored in the desktop appl...

Adobe Air - window.nativeWindow undefined

Hi, I have an Adobe Air Application opening a Window from menu tray. The html content have a javascript code doing alert(window.nativeWindow) on load. It works fine with an embeded html static file It do not works with a JSP called file I have correctly included AIRAliases.js. Is there restriction about nativeWindow ? My goal is to...

Finding out when Recursion involving Asynchronous operation finishes

Hi All, I have a recursive call which includes an asyn operation (file copy) .. I want to find out when the recursive call finishes (along with all asyn operations). private function copyInto(directoryToCopy:File, locationCopyingTo:File):void { var directory:Array = directoryToCopy.getDirectoryListing(); ...

Allow end user to define state transitions in a Flex mxml application

Adobe has a great tool for designers called Adobe Catalyst to develop AIR based desktop apps which designers can customize to define state transition in a screen-flow based application. Now Is there a way in which an end-user who gets that application can change the conditions for state transition and the the content of the state. For ex...