air

Should I use the Flex or Air SDK to develop an Air app?

I want to develop an Adobe air application. Whats the difference between using the Air SDK or Flex SDK and what are the advantages / disadvantages? My application will use a SQLlite database and PHP may be involved later if I turn the whole thing into a web app. thanks ...

Can I embed a sqlite datbase in an Air application?

Is it always necessary to create a database for the user in an adobe air application or can you ship an empty database as part of the distributed app? ...

How can I target a Flex 3 datagrid in MXML from Actionscript?

I have a datagrid defined in an mxml file (flex 3): I am using an external class to connect to a sqlite database and generate some results (this is working and I can trace the results). How can I target the datagrid generated in the mxml from the external class? I have tried: Application.application.resultsGrid.dataProvider = result...

Adobe air window with no chrome badly calculates dimensions when maximized.

When i maximize an air window that has no chrome (no system chrome, no flex chrome but i think it's the same even if only flex chrome is used) a few pixels on all sides go offscreen. Anyone has a solution for this or knows why it happens? ...

Handling Application Exit events in an AIR application

I have an AIR app with the following EXIT handler defined: NativeApplication.nativeApplication.addEventListener(Event.EXITING, applicationExitHandler); applicationExitHandler makes an asynchronous logout request via an HttpService. Since this is asynchronous, it looks like the Application's exit() method returns before the logout re...

How to load WSDL from file

I am trying to save some bandwidth and include wsdl file in my flex/air application. Which url format should I use in order to load that file instead of the remote one. I am using loadWSDL() method. EDIT: wsdl file needs to be part of the application. I know I can use file://some/path for local files, but don't know how to load file ...

How to discover a LocalConnection connection name?

I'm developing a Adobe Air application that should make use of a SWF file using LocalConnection. I've never used LocalConnection before, but from what I understood from the online reference, I need to specify the same connection name on both the sender and the receiver. Since I don't have access to this component source code, how can I...

Do you use an architectural framework for Flex/AIR development?

Given that Flex is still a relatively young technology, there are already a bunch of architectural frameworks available for Flex/AIR (and Flash) development, the main ones being Cairngorm and PureMVC. The amount of architectural frameworks is remarkable compared to other technologies. I was wondering how many of you use an architectural...

Reposition Air NativeWindow when Maximized?

Hi - How can I set the native window position when maximized? I've tried repositioning it upon the DISPLAY_STATE_CHANGE event which sort of works - but the window flashes at maximized size before repositioning, and more importantly the 'maximize' button of the window is still active. What I'm trying to achieve is simply a fixed width w...

LoaderContext and ApplicationDomain changes with Adobe AIR ?

Hello, I'm currently experimenting with loading external SWF files from both an standard AS3 application, and an AIR application. It seems that the AIR application doesn't act the same way a standard SWF run by the Flash Player does. According to the documentation, the applicationDomain property of LoaderContext is usable in an AIR app...

Debugging deployed AIR application

Is it possible to attach a debugger to an AIR process like it is in Java? What's the best option for me to debug an AIR application that must be done in production (will not work in FlexBuilder due tom some integration issues). ...

How to parse/ignored malformed XML parts?

I'm write a Air application that consumes a beta webservice API. Sometimes this APIreturns me a malformed XML node and actionscript will raise an error when I try creating the XML object out of it. What I've been doing is just try/catching the result and ignore the whole response if the XML is bad, but I could just ignore the malformed ...

Adobe Air file avoid opening

Hi, After creating an adobe air file, I am able to open it using winrar or any other archiving program and see all the contents including the code of my program. Is there a way to avoid this? Some sort of encryption or something? Thank you very much. ...

Is it possible for Flex 3 to spawn a new browser to the brower's default home page?

My windows application hosts a Flex application via the IE ocx. I have a button on my flex canvas that when pressed should spawn the users default browser, open to his or her home page. When the click handler looks like this it works fine: private function OnClickedInternetImage() : void { var url:String = "http://stackoverflow.com"...

Detecting flash test player

I've noticed that there are certain AIR options that don't work in the flash test player (the one that previews movies when you Ctrl + enter). One example is NativeApplication.startAtLogin. If it is called from the standalone player (double clicking on the swf file, for example) it works, but if i test it on the flash ide it will throw...

Change label of a NativeMenuItem

I'm experimenting with Adobe AIR and Google Maps API in Flex Builder. The question is, i'm making a NativeMenu, and was wondering, how can I change the label of the "Fullscreen" item to "Exit fullscreen" when the stage is in fullscreen? If you see any thing in the code that could/should be written better, please let me know ;) Here is ...

How Adobe AIR application can find out what URL it was downloaded from?

We have an Adobe AIR application which could be possibly downloaded from multiple domains. And when it's run, it should connect back to the site it was downloaded from to get data to show to the user. So far we have a separate application build for each domain with a site URL hardcoded into it. And I wonder is there a way for AIR applic...

How can I asynchronously add items to a Native Context Menu in Adobe AIR?

Once a Native Context Menu is invoked, I need it to be populated from a set of remote service calls. Current implementation, however, requires items to be set before opening the menu. Any ideas? Thanks ;) A ...

Adobe AIR - reading a file in the same folder outside AIR package

How may I know File.nativepath from the folder that my .app or .exe AIR app is running? When I try this I just get '/Users/MYNAME/Desktop/MYAPP/Contents/Resources/FILETHATINEED.xml' I need put this on any folder and read a xml file in the same folder. I don't need my xml file inside the package. I need this structure /folder...

Flex AIR unzip

Hi, I am a newbie to Flex AIR. I am trying to create an application that will unzip the contents of a zip file & place them in a particular directory. How can I achieve this? Is there any unzip library available for flex? Pls help me. Thanks in advance. ...