air

Security Sandbox violation for a Socket in AIR app?

I thought AIR applications ran in a trusted sandbox, but I am getting a security sandbox violation for a socket connection. It used to work, off and on, but I just started messing with on old project again and now it doesn't work at all. Targeting Flex 3 SDK with Flex Builder 4 beta. socketIOError: Error #2031: Socket Error. URL: 174....

flex Text Layout Framework multilingual support

Hi all, I am using text layout framework in my application. I am using textflow as editor to my application. As text layout framework supports multiple languages. I a m able to see the text in multiple languages. Now my doubt is, can I type in different languages? For example: As in word if we choose the font as Hindi then whatever we...

Flex PNG/JPG decoder

Hi, Now, I run the following code in Flash to get the raw binary data of one PNG file. var fr:FileReference = new FileReference; fr.browse(); fr.load(...); After loading complete, I think I can access the PNG file binary data from fr.data, now, I want to display this PNG picture in my application, could you please tell me, is there a...

Adobe Air App Starts in Centre

In my application.xml I can set the position of the initial window. However this is set in pixels from the top left corner of the screen. So how would I centre it? ...

Get data from dynamic HTTPService Asynchronous to populate an Advanced Data Grid Flex

I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual Value-->Estimate Value I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; have you got any idea to do so? Thank you. If necessary i'll post the .as file, but i...

How to create a dynamic xml which populates an advanced data grid in flex air application

Is it possible to create a dynamic xml file which changes in some fields to populate an advanced data grid? I have to display continents, countries, society and its values but i want to change randomly only the value and not all toegether... The client side application call the database by an asynchronous httpservice. LCDS, Blaze or simi...

Multiple file uploader in HTML5 -- browser support?

I read that the HTML5 spec introduced the ability to select multiple files in an upload form. What browsers currently support this? Does Adobe AIR support it? Bonus question: Is there a JavaScript library that takes advantage of this functionality? ...

Adobe AIR: Overwrite standard Command C keyEquivalent?

Hello, I'm currently trying to built a little Air Application where I want to set the normal Command-C key to call a function? Is this even possible to use a standard Menu Command? function createMenu():NativeMenu{ var menu:NativeMenu = new NativeMenu(); var menuOneCommand: NativeMenuItem = menu.addItem(new NativeMenuItem("Menu 1")); m...

Best way to implement SQLite data storage in AIR

What would be the best way to commit data to an SQLite database in AIR? I currently have an NamesCollection class which extends ArrayCollection. The addItem method takes the name as a parameter and passes it on to the addItem method of the base class, then writes it to the database using the flash.data.* API. I would also like to use da...

1120 error by adding a var in Flex 3

On the adobe website was this code: var conn:SQLConnection = new SQLConnection(); var dbFile:File = File.applicationStorageDirectory.resolvePath("DBSample.db"); try { conn.open(dbFile); trace("the database was created successfully"); } catch (error:SQLError) { trace("Error message:", error.message); trace("De...

How do I add XML data into an local XML file, so I can read it later.

I want to save XML data into a XML file. So I can load it on the next startup. ...

Polygons problems with degrafa

Hi everyone, I have a problem with degrafa's polygons. I've created 4 polygons to reproduce a picture frame, they all looks the same, I just change their coordinates and angle. the bottom one : <Polygon data="{parentApplication.original.height},0 {parentApplication.widthSlider},0 {parentApplication.original.height+parentApplication.wi...

Air Install Badge Error

I have successfully created an AIR application using xhtml, css and javascript. The app installs properly on my local computer, but after creating the install badge using BadgeBuilder I get the dreaded Error# 2032. I have Googled this to death but I have not been able to solve the problem. This is the final step on the project and I wou...

Connect to Facebook with Javascript Client Library using Adobe AIR

I'm having an issue connecting to Facebook through the Javascript Client Library in Adobe AIR. It works fine in the browser but in Adobe AIR it seems to not be able to find the Facebook functions. Here is some code I copied from the Facebook website: (Oh and I have the xd_receiver.htm file in the correct path too) <textarea style="width...

Add New Gist using the Github API

I'm making a small app in Adobe Air which I need to interact with the Github Gist API. However I'm kind of stuck. If you're not familiar with Adobe Air you can still help, the XMLHttpRequest javascript object can do cross domain requests, as there is no domain as such. So theres nothing Adobe Air specific here. Where I'm stuck is I th...

which is better for desktop application?

hi! i'm new to creating desktop applications. I've a working site in php with mysql support. I want to convert this site into a desktop application. Is Adobe AIR or Adobe Flex better? can i use php as such in both AIR and Flex? or should i convert them to xml or something which it uses? ...

Calling a local Windows service from Air

Is there a way to call out to a local Windows service (ie COM etc) from Air? Thanks, Philip ...

Flash: Stage.FullscreenInteractive -> Difference if class or 1st frame

hello, i don't get it! example 1: 1st frame of my app var screenBounds = Screen.mainScreen.bounds; //Bounds of current screen var full:Sprite = new Sprite(); //Sprite Fullscreen //Enter Fullscreen function goFullScreen(e:Event = null) { //myClass.goFullscreen(); full.graphics.clear(); full.graphics.beginFill(0x...

Database abstraction layer for AIR (JS)?

Hello guys, I was wondering if there are any abstraction layers for the SQLite database thats integrated into Adobe AIR. I don't expect something like Doctrine or Zend_Db (coming from the PHP world) but a bit more abstraction and comfort would be really nice. I'm using the HTML/JavaScript flavor of AIR so any ActionScript stuff is of ...

Connecting to commercial databases from an Adobe AIR application

I'm new to Flex and Adobe AIR, but I'm writing a desktop application that will need to connect and query commercial databases such as DB2, SQL Server and Oracle. How do I connect to these type of databases from ActionScript in an AIR application? ...