air

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

Cannot display images in HTML component

I have the following HTML component, trying to display a local image, however it will not show up whether I use <img src="file:/tmp/img.png"> or <img src="/tmp/img.png" />. Any ideas why this doesn't work? Saving the file to a local file and opening it works fine! var xhtml:XML = <html> <body> <img src="file:/tmp/logo.gif" /> </body> ...

Can you run AIR apps from command line?

The question ultimately aims at answering this question: can a batch script run an AIR app? The goal is to setup an AIR app on a web server and make it run through batches. I simply have to know whether this is possible by default or not. Thanks. ...

flex datagrid focus cell

Hi, I have a datagrid in which a column s having cusomized itemRenderer(textflow on canvas). Now I want to perform find text operation on each cell's textflow. For that I able to do find text operation on a focused cell. But now my requirment is to find the the text in all. Thanks in advance. ...

flex textflow link processing

Text Flow: <TextFlow xmlns="http://ns.adobe.com/textLayout/2008"&gt; This os the Xml content to be displayed in my text flow. Added <a>link</a> for testing. I need to show a custom tool tip on click of the link. <img source="assets/images/0.jpg"/> </TextFlow> I am importing text xml in Text Flow using: _textFlow = TextFilter.impo...

Would it be reasonable to proxy every server call to get around API restrictions (i.e. Twitter)?

I've run into a few problems with API limits(too many calls) and server timeouts(calls too fast) while coding an AIR App. I'm not very familiar with the performance of proxies, so I'm wondering if downloading a list of proxies to the app every so often and using a different proxy for every API call would be reasonably fast. I'm not even...

Does Adobe Air have unconstrained file system access?

I've found several examples and documentation that show how to read and write files on the system, but all show user intervention or reading/writing files in user profile directories. There are a few things I want to do: Monitor system and other application log files for changes, then automatically load those files when changes occur ...

Flex/air or google gears or other...

Hello, I'm starting a new project divided into two parts: a php application and a desktop application that will use information from the php application. The desktop application needs to meet the following requirement : easy to install easy to launch allow off-line data view allow synchronization with php app. which solution is bet...

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

Is there a way to group a set of soap methods logically in a "class" type entity?

Hi all. For our large C++ based project we now have a method to automatically generate code to expose our code as SOAP methods. This works really well, and we are planning to start implementing an RIA based application using Adobe AIR / Flex based on the API's we have exposed. The question I have is about organizing SOAP webservices...

flex air datagrid setfocus cell by cell

Hi all, I have a datagrid with custom itemRenderer. Now I need to setfocus int the grid cell by cell. For that I Googled & got a way i.e var findrowindex:int = 0; //nextButton Click Handler var focusedCell: Object = new Object(); focusedCell. columnIndex = 3; focusedCell. rowIndex = findrowindex; dg.editedItemPosition = focuse...

Re-measuring custom item renderer on a List

I'm writing an Adobe Air client to a service similar to Twitter. On the timeline (List component) I have a custom item renderer which is basically a Canvas with a fixed-width Image and a Text control, which is multi-line. If the text is long enough to change the Canvas height, it will only be resized if I manually change the width of t...

Adding SWF to HTML based AIR App

Hi, I have a little HTML based Adobe AIR project I'm playing with and I'd like to add an existing SWF to the project. Now, I can see it running via the trace/log messages coming through from the SWF, but I can't seem to call any function within the SWF. I've read that the ExternalInterface function isn't available within the Air cont...

How do it make a .air, I have tried the adl and adt but it doesn't work for me

I downloaded the last AIR SKD, I'm using Windows Vista. I have trying to make a helloworld in Adobe air and it's not working// what should I do? ...

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

Call python script from AIR application?

How can we invoke a python script using AIR 1.5? ...

flex xml appendchild

Hi, In my flex project I am using XML to populate TextFlow using: TextFilter.importToFlow(XML(str), TextFilter.PLAIN_TEXT_FORMAT); I woud like to add html links to the textflow. For that I adding html a tag in xml but I am getting parser error(malformed xml). var fixed:String; fixed = fixed.replace(link, "<a href='event:xyz' >"+link...

Access system environment variable in AIR?

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

Errors in Flex 3 XML implementation? Rewriting xml:lang

So I'm working on a quick utility to allow simple editing for TMX files. TMX is basically an XML-based standard for storing multilingual translations. Anyhoo, I'm importing TMX into an Adobe AIR app via a File reference, then grabbing the file stream, slapping the UTF-8 characters into a string, and then that string into an XML object. T...