Creating an air app as a native library
Is there a way to build a swf with adobe air that will create a native library(.a,.so,dll, etc) so that I can load it from inside another application?
Hi Sean,
Unfortunately, I don't have an answer to this question, but I'm hoping others in the community can help out. Running AIR as a service has been a popular request, but not something we officially support at this time. There have been a couple of feature requests made for this that I'd encourage you and others interested to go vote on:
Run AIR app as a service on a server machine without user logon on the machine
Register and run as Services on OS
Googling "Error 1053: The service did not respond to the start or control request in a timely fashion" returns quite a few hits, with responses ranging from increasing time out lengths, changing logon account types, and many other service property tweaks.
Please let us know if your able to get this to work and hopefully others can contribute their experiences as well.
Chris
Similar Messages
-
Packaging Linux AIR app as a native package (.deb)?
Ok, so I've been tasked with packaging an AIR app in a system package. We got a redistrubution license for AIR so I think we are good in that respect but I run into an unfortunate predicament when trying to do a silent install from a deb:
Both AIR runtime and AIR applicaiton generate a native package (.deb in this case) during install. So even though I can run silent install from my own deb, it fails to install as it cannot install a deb during installation of a deb. I am assuming that even if I could somehow grab the generated deb file, it would be against the license agreement to do so.
So, any thoughts as to how to get this accomplished? Is there an alternative distribution of an app that comes as a native ".deb" file? Or is there a command line option that disables a native package management install? ( I can seem to find no information on any command line options for the bin installer)
Thanks.
-MOk, so I've been tasked with packaging an AIR app in a system package. We got a redistrubution license for AIR so I think we are good in that respect but I run into an unfortunate predicament when trying to do a silent install from a deb:
Both AIR runtime and AIR applicaiton generate a native package (.deb in this case) during install. So even though I can run silent install from my own deb, it fails to install as it cannot install a deb during installation of a deb. I am assuming that even if I could somehow grab the generated deb file, it would be against the license agreement to do so.
So, any thoughts as to how to get this accomplished? Is there an alternative distribution of an app that comes as a native ".deb" file? Or is there a command line option that disables a native package management install? ( I can seem to find no information on any command line options for the bin installer)
Thanks.
-M -
Hello,
I don't know if this is the correct forum for this post, but here it goes.
I created my AIR app on my desktop running OSX 10.5.8. I'm able to publish and install the app just fine. I'm also installing the same AIR app on my laptop running OSX 10.6.8. The install works great.
It's when I make changes to the .fla file, I transferd to my laptop, and go thru the AIR 2.6 setting to publish the app and install it; I get the "Sorrry, an error has occurred. ...this installer has been mis-configured...
Should the differnt OS's make a differance?
Both macs run CS5.5
Thanks
RickThat should work, could you post the contents of your installer log so we can see what the actual error is?
Mac Installer Log
Thanks,
Chris -
Sidecar AIR Runtime install with Native .exe installer using ADT
I have packaged my AIR app into a Native .exe installer using ADT. If the user does not have air installed and they are connected to the internet, the AIR runtime is automatically installed.
Is it possible to package the AIR runtime into the exe so that if the user is not online the AIR runtime is installed?
I have experimented with the sidecar install and .air file but ideally I want to only have the one file(.exe). I already have a distribution licence from Adobe.manicjames wrote:
I have packaged my AIR app into a Native .exe installer using ADT. If the user does not have air installed and they are connected to the internet, the AIR runtime is automatically installed.
Is it possible to package the AIR runtime into the exe so that if the user is not online the AIR runtime is installed?
I have experimented with the sidecar install and .air file but ideally I want to only have the one file(.exe). I already have a distribution licence from Adobe.
This isn't available at this time, but I think it's a great idea. You might want to add a feature request for this over at ideas.adobe.com and bugbase.adobe.com, or review and vote for these current feature requests if they provide for what you're looking for:
Portable AIR Apps
Create portable AIR apps
If you decide to add a new request, please post back with the URL so others can cast their votes and add comments.
Chris -
Want to use pushViewController and segues from UINavigationController in AIR app on iOS
Ok, this might be a long shot, but here goes.
My iOS AIR app includes a bunch of native screens defined in a storyboard. I have them included by putting them into a native (static) framework, including that framework in an ANE, and adding code to instantiate and add the various ViewControllers to the screen.
I can add a ViewController as a child and get its view to show on the screen with the following obj-c code in my ANE:
[[[[UIApplication sharedApplication] keyWindow] rootViewController] addChildViewController:controller];
[[[[UIApplication sharedApplication] keyWindow] rootViewController].view addSubview:controller.view];
[controller didMoveToParentViewController:[[[UIApplication sharedApplication] keyWindow] rootViewController]];
However, some of the views have child views that use segues and the push stack from UINavigationController. When these screens try to load, I get the following error:
Apr 21 13:50:43 raspberry LKW_Smash[7703] <Error>: *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Could not find a navigation controller for segue 'MemberOptionsSegue'. Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
So I attempted to get access to the app's UIViewController, and push the new ViewController onto the stack with the following code:
[root.navigationController pushViewController:controller animated:YES];
But root.navigationController is nil! It looks like the app doesn't have one!
So after all that, my question is this: How do I create an AIR app that includes a UINavigationController and is not simply just a single-view app?Sync the contacts on your Mac with Google Contacts as well... There is no need to involve iCloud.
Perhaps you should take a look at Google's help pages. -
AIR apps making AIR apps?
I'm creating an AIR app that makes games. Once a game is created, I'd like the user to be able to share it in some easy-to-use fashion. Using nochump zip library, I'm able to export files to zip folder and rename it with a .air extension, but supposedly there is more to an AIR app than that. Launching it throws this error:
The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author.
My guess is it's probably due to security issues. Is there a way to get around this?An AIR file is more than just a zip. Some of the files need to be a specific order within the zip, and there needs to be a signature. Unless you want to reimplement ADT in actionscript, your best bet would probably be to use the NativeProcess API to call out to ADT to do the packaging for you.
-
"Call to method "setTextFormat" cannot be defined" in Air App (help needed)
Hello,
I'm following a tutorial to begin with ActionScript 3 and Adobe Flash. I'm willing to create an Air app, but I stumbled upon an issue. The tutorial is for Flash Player, so I wonder if it also work for Air apps (sorry, I don't quite grasp the differences yet).
So here is a screenshot of the issue :
The error reads : Call to method "setTextFormat" cannot be defined, via reference of type static fl.controls:TextArea
(sorry if it's badly translated :/)
What I have below is a TextArea (taken from the User Interface Components) and a button (same). I noted their instance name that you can find back in the AS block.
So since it's the exact same code as in the tutorial (in which it work), why do I get this error ? I tried lot of things to get rid of it, but I'm out of options now, so I ask you for help.
Regards.Thank you very much for you answer Ned. It's clearer now. I just would like to create the textField WYSIWYGly, but I can't find it inside the component Library. Only TextArea's and TextInput's are there. Do you have any idea where I could find this component to add it visually to my project ? Or must I create it with AS?
I use Flash CS5.5 by the way.
EDIT: striked out non relevant portion. I finally found out. Sorry it's been a while, but it was so obvious ^^ -
Does anyone see this issue happening? In Flash Pro it's OK, but in AIR, it's broken.
https://bugbase.adobe.com/index.cfm?event=bug&id=3558175
Problem Description:
Some JPEG-compressed images in swc produced by Flash Pro CS6 is not shown in AIR.
Steps to Reproduce:
1. Create a fla with Flash Pro CS6
2. Put a png image in it and open the property of the image to make sure its compression option is Photo (JPEG)
3. Produce an swc out of the fla
4. Create an AIR app that shows the contents in the swc
Actual Result:
All images are shown
Expected Result:
Some of the images are not shown (nothing is shown where they are supposed to be)
Any Workarounds:
Use Lossless (PNG/GIF) for all imagesi was able to get it to work from a suggestion in another thread: if you write a JSFL that goes through all your bitmaps and makes sure they do not uset he default compression of the document, but instead use custom compression (it can match the default however). this worked for me
-
Multiple AIR apps with the same local cache?
Hi guys,
Is it possible to create multiple AIR apps (for mobile & desktop) that can use the same local cache?
For example: 2 apps for iPad will use the same data store (local cache). If we synchronize (with LCDS) and get all the data for 1 application, if we open the second application, can we access the data set from the other application?
Thx!Hi Vikram,
Eventhough I think it is techincally not possible, even if it was I would not recommend doing this. I think this is asking for problems and you can wait for the day that somebody messes up your production system, thinking it is DEV.
I would use names like DEV_Oracle_BI_DW_Base and PRD_Oracle_BI_DW_Base, to clearly distinguish between the environments. But then again, I think Informatica forces you to use different names.
Regards,
Toin.
~Corrected typo.
Edited by: Toin on Oct 16, 2008 4:02 PM -
Im relitivley new to using AIR.
Currently using the latest Free SDK and our HTML/JS app.
Primary use for our app is to allow multi download/uploads into our web editor.
The profile is 'extendedDesktop' as we need to execute a desktop app from within.
The issue that we have is because we are going to use this app within our company we needed to package it as EXE due to the 'extendedDesktop' profile, users dont have admin privs so they cant install it. This can cause an issue when trying to roll our an update in realtime without having to MSI and roll it out with GPO or an admin person go around and install it.
I have thought of a diffrent way around this but dont know if it is possable.
Can one AIR app speak to another and pass params?
My idea behind this is we would create two AIR apps:
- a 'Desktop Enabler' which is kept very very simple and installed by an admin, this would not realy change and only handles tasks that need the 'extendedDesktop' profile, this could take params from the main app and execute as required the desktop apps
- the second would be the main app package, this would handle all the other tasks that dont need 'extendedDesktop', we could then install this as a .air package without admin privs localy in the user profile and update it as required.Of course with different icons and interface, the new interface has a sliding separator style to show difference between edited and original photos. I meant I have the same issue as you.
A proud Sony User since 2002
If I was helpful to you, thank me by Kudos -
AIR App in Mac OS X's menu extras
In Windows we can create a AIR app which can sit in SystemTray
On MAC :Can we place a AIR app in MAC OS X's menu extras???
In any refrences are there, please do share.
Thanks in Advance.
VijayHi AlvaM3,
Thanks for using Apple Support Communities. Here are the requirements and instructions on how to use AirPlay:
iTunes: Using AirPlay
http://support.apple.com/kb/HT5922
If you encounter trouble, this article may help:
iTunes: Troubleshooting AirPlay and AirPlay Mirroring
http://support.apple.com/kb/ts5209
Cheers,
- Ari -
How can I customize the skin of my AIR app
Hi all,
I have created an AIR app from my RoboHelp v7 WebHelp.
Works and looks quite nice. Great. It's just that it did not use the WebHelp skin I created. It uses some default skin.
How can I customize the skin of my AIR app? When I run the RH Packager for Adobe AIR, I get a dlg box come up, called, "General Options - RoboHelp Packager for Adobe AIR" and it offers me a few default skins, but it does not offer me the skin I made for my WebHelp.
I also heard that if you learn FLEX you might be able to change the skins.
TIA
aviHeya,
In order to change it alle just set it up as ordinary html webpage so heres and example of css:
style.css - In the main directory of your app.
body {
margin:0;
padding:0;
#wrap {
margin:0;
padding:0;
text-aling:left;
#header {
padding:2px;
background:#000;
color:#fff;
#content {
padding:1em;
margin:0;
background:#ccc;
#footer {
padding:2px;
background:#000;
color:#fff;
Now for the html file:
<html>
<head>
<title>My App</title>
<link href="style.css" rel="stylesheet" media="screen" />
// Scripts go here
</head>
<body>
<div id="wrap">
<div id="header">
My Application title
</div>
<div id="content">
bla bla bla lorem lipsum.
</div>
<div id="footer">
Copyright'n stuff
</div>
</div>
</body>
</html>
If you need more help or examples I recomend that you go here and read some stuff on a lot of it all , you can also download theese samples it contains a lot of good stuff which makes it all A LOT easier to understand, the way I learnt most of what I know even though I am still missing some things.
Hope it helped!
Best Regards
Buch -
Multiple instances of an air app
Is there a way to create an AIR app that can have multiple instances of itself running on the same windows machine?
Ahh. So you're saying in the air application descriptor under
<!-- The application identifier string, unique to this application. Required. -->
<id>YourAppId</id>
if this is different you can start multiple instances?
Let's see... [tests]
Yep, it works.
Not a lot of fun having to do this manually each time in FB, but at least it's possible. -
Allow chromeless AIR app to run off top of screen
I'm creating an AIR app with no chrome.
The user moves it by draging the visible contents (via nativeWindow.startMove();)
AIR is not allowing the user to drag the the top of the app above the top edge of the screen.
This would make sense if I only had a title bar to get the window back with, but I'm not using one.
Is there a way to allow the top of the app to run off the top of the screen?
Currently Allowed
Would like to do this
top of screen
+-----------------------+
| |
| |
| |
| |
| |
invisible chrome---> | |
| |
visible | ++++ |
dragable area -+--> ++++++++ |
| ++++++++ |
| ++++ |
| |
+-----------------------+
+------------------------+
top of screen | |
-------------------------------+-----------------------+---
| |
| |
| |
invisible chrome---> | |
| |
visible | ++++ |
dragable area -+--> ++++++++ |
| ++++++++ |
| ++++ |
| |
+-----------------------+If anyone ever tried and realized there's positively no way to achieve this, please let me know.
Thanks
Sarah -
Native extension to unzip a file crash my air app
Hello,
I have a problem with a native extension for android
I want to unzip a file
my java code
File f = new File("my zip file");
File outputDir = new File ("output folder");
ZipHelper.unzip(f, outputDir);
and
import java.util.zip.*;
import java.io.*;
import java.util.Enumeration;
import org.apache.commons.io.IOUtils;
import android.util.Log;
public class ZipHelper
static public void unzip(File archive, File outputDir)
try {
Log.d("control","ZipHelper.unzip() - File: " + archive.getPath());
ZipFile zipfile = new ZipFile(archive);
for (Enumeration e = zipfile.entries(); e.hasMoreElements(); ) {
ZipEntry entry = (ZipEntry) e.nextElement();
unzipEntry(zipfile, entry, outputDir);
catch (Exception e) {
Log.d("control","ZipHelper.unzip() - Error extracting file " + archive+": "+ e);
static private void unzipEntry(ZipFile zipfile, ZipEntry entry, File outputDir) throws IOException
if (entry.isDirectory()) {
createDirectory(new File(outputDir, entry.getName()));
return;
File outputFile = new File(outputDir, entry.getName());
if (!outputFile.getParentFile().exists()){
createDirectory(outputFile.getParentFile());
Log.d("control","ZipHelper.unzipEntry() - Extracting: " + entry);
BufferedInputStream inputStream = new BufferedInputStream(zipfile.getInputStream(entry));
BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
try {
IOUtils.copy(inputStream, outputStream);
catch (Exception e) {
Log.d("control","ZipHelper.unzipEntry() - Error: " + e);
finally {
outputStream.close();
inputStream.close();
static private void createDirectory(File dir)
Log.d("control","ZipHelper.createDir() - Creating directory: "+dir.getName());
if (!dir.exists()){
if(!dir.mkdirs()) throw new RuntimeException("Can't create directory "+dir);
else Log.d("control","ZipHelper.createDir() - Exists directory: "+dir.getName());
i copy the file commons-io-2.4.jar (I get at http://commons.apache.org/proper/commons-io/download_io.cgi) in the lib folder of eclipse.
in a native android app, this code work fine
in a native extension for air, my air app crash
LogCat in eclipse return
NoClassDefFoundError: org.apache.comons.io.IOUtils.copy
IOUtils class is not in commons-io-2.4.jar ???
thanksHello,
I have a problem with a native extension for android
I want to unzip a file
my java code
File f = new File("my zip file");
File outputDir = new File ("output folder");
ZipHelper.unzip(f, outputDir);
and
import java.util.zip.*;
import java.io.*;
import java.util.Enumeration;
import org.apache.commons.io.IOUtils;
import android.util.Log;
public class ZipHelper
static public void unzip(File archive, File outputDir)
try {
Log.d("control","ZipHelper.unzip() - File: " + archive.getPath());
ZipFile zipfile = new ZipFile(archive);
for (Enumeration e = zipfile.entries(); e.hasMoreElements(); ) {
ZipEntry entry = (ZipEntry) e.nextElement();
unzipEntry(zipfile, entry, outputDir);
catch (Exception e) {
Log.d("control","ZipHelper.unzip() - Error extracting file " + archive+": "+ e);
static private void unzipEntry(ZipFile zipfile, ZipEntry entry, File outputDir) throws IOException
if (entry.isDirectory()) {
createDirectory(new File(outputDir, entry.getName()));
return;
File outputFile = new File(outputDir, entry.getName());
if (!outputFile.getParentFile().exists()){
createDirectory(outputFile.getParentFile());
Log.d("control","ZipHelper.unzipEntry() - Extracting: " + entry);
BufferedInputStream inputStream = new BufferedInputStream(zipfile.getInputStream(entry));
BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
try {
IOUtils.copy(inputStream, outputStream);
catch (Exception e) {
Log.d("control","ZipHelper.unzipEntry() - Error: " + e);
finally {
outputStream.close();
inputStream.close();
static private void createDirectory(File dir)
Log.d("control","ZipHelper.createDir() - Creating directory: "+dir.getName());
if (!dir.exists()){
if(!dir.mkdirs()) throw new RuntimeException("Can't create directory "+dir);
else Log.d("control","ZipHelper.createDir() - Exists directory: "+dir.getName());
i copy the file commons-io-2.4.jar (I get at http://commons.apache.org/proper/commons-io/download_io.cgi) in the lib folder of eclipse.
in a native android app, this code work fine
in a native extension for air, my air app crash
LogCat in eclipse return
NoClassDefFoundError: org.apache.comons.io.IOUtils.copy
IOUtils class is not in commons-io-2.4.jar ???
thanks
Maybe you are looking for
-
where can i buy a new screen and can apple replace it for free ( or for a low cost)....?
-
How do you know what speed discs to use?
I experienced a problem backing up my iTunes library and found out it might be due to the DVDs that I was using. I have a G4 iMac running 10.3.9. It has a superdrive but I am not sure how to figure out what speed disc to use. Can anyone help? My 16X
-
The time sheet record collides with an attendance.
Dear Expert, I got the following error message when I try to apply OT through CAT2. Message no. HRTIM00CATS208 Diagnosis The time sheet record from 18:00 - 19:00 o'clock collides with an attendance or absence of less than one day recorded in HR Time
-
CS5 - Trouble with preview files...
Hi, when I import footage and drag it to the tl I get this yellow line. After I did some color correction I get a red line. Then I render the tl und, surprise, I get a green line. I close PP and start it again after a while and... there is the red li
-
Upgrade to Premiere Elements 8.0?
I recently purchased Photoshop Elements 8.0. It had a 30 day trial version bundled with it for Premiere Elements 8.0 which I installed. I have used it enough to now want to upgrade (as offered for I believe $49.95) but can find no way to do this fr