.air is just a ZIP file?
Creating AIR Application From Command Line
I have tried using both Windows PowerShell and cygwin to create an AIR application from the command line. (The examples here are from PowerShell, but cygwin yields the same results.) The only way it works is if the Main.swf file is in the same directory as where the application is being run. For clarity's sake, my current directory structure is:
sanitized
|
|- target
| |
| |- Main-app.xml
| |- Main.swf
|
|- certificate.p12
Commands I've tried, and their results:
C:\sanitized> adt -package -storetype pkcs12 -keystore certificate.p12 target\Main.air 'C:\sanitized\target\Main-app.xml' 'C:\sanitized\target\Main.swf'
password:
C:\sanitized\target\Main-app.xml(40): error 302: Root content Main.swf is missing from package
This is my main problem. I do not want to have to run adt in the 'target' directory, or copy my SWF files to my root directory, to run adt properly. Why can't it resolve paths?
I also tried it with just the 'target' directory:
C:\sanitized> adt -package -storetype pkcs12 -keystore certificate.p12 target\Main.air 'C:\sanitized\target\Main-app.xml' target
password:
C:\sanitized\target\Main-app.xml(40): error 302: Root content Main.swf is missing from package
I have tried various combinations of files and directories, with and without the -C and -e arguments. Any suggestions would be appreciated. Thanks!!
How to run AIR on linux with no gui, no console?
Folks,
Has anyone had success running an AIR application from the command line in the background without a GUI? Is setting WindowApplication.visible=false, sufficient? Required? Thanks!
"(program).exe has encountered a problem and needs to close. We are sorry for the inconvenience."
Hi, I was using Tweetdeck for the past few months without any problems. Recently, the application still works fine.. it opens as normal, all posts I am following appear etc., but when I try to send a tweet the application closes and I get the error
"tweetdeck.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
I uninstalled tweetdeck and reinstalled it many times. Sometimes it would work for twenty minutes, other times not at all. I got fed up trying, so uninstalled it and downloaded Seesmic. This new application opened perfectly, all users I am following and their tweets updated perfectly, until again I went to post a tweet and it closes and I get the error
"seesmic desktop.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
As these are the only two applications I have used that give me this error, and are also the only two applications I have used that are related to Adobe AIR, I can only assume the problem is connected somehow?
I was wondering if any of you might have any suggestions on how I could fix this? I am not the most tech saavy guy, so any help would be greatly appreciated as I am starting to lose patience with it!
Thanks in advance.
batch inserts in SQLite instance in AIR?
Hi,
is there a way to execute multiple insert statements as one batch in the SQLite instance of AIR?
for example
var sql:String = "insert into the_table values ( 'one', 'two' );
insert into the_table values ( 'three', 'four' );
insert into the_table values ( 'five', 'six' );"
we want to reduce the overhead of event processing when using the async connection.
Thanks,
Calvin
Convert PHP Site to AIR Application
I am working in an educational institute. I developed a website for controlling students admission & scheduling. This is only for departmental use. I like to convert this application to a standalone desktop application by using adobe air. In this PHP application form submission and data retrieving except some complex pages done through http request.
I am really confused, where I can start, what are the steps? is it need to convert all PHP to Ajax? is it need to change all graphics & graphic menus?
Please help…
thanks
How do you use adobe air and what is it purpose?
How do you use adobe air and what is its purpose?
Get Hardware Info to generate computer unique key
Hello,
I am trying to port a desktop app I have in c# .net framework to adobe AIR.
One of the things I need to do is generate a computer unique key to identify the computer on the server.
In C# i would use the System.Management.Management class and get the Motherboard Serial number, CPU ID, etc... Is this possible in ActionScript? What alternatives do I have? I can't find any reference of this on the web...
Thanks
load local SWF files, security sandbox, stage access HELP!!!!
I have many SWF files that do the following:
- reference the stage
- load in external swfs and FLVs and XMLs
It seems that for the most part loading them in VIA the Loader Class (AS3 not Flex) works except that sometimes I get security sandbox errors that I believe are being caused by those swfs wanting access to the "this" or "stage" variables.
What is the "Proper" way to do this. What I want is this:
For my AIR app to load in a list of LOCAL swf files and provide me the ability to play each one back as I see fit.
Here's the coding I'm using to load each in, this is in a loop iterating through a file listing array:
var file:File = File.desktopDirectory.resolvePath(finalListingArray[topicNum].nativePath); var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, stopLoadedContent); loader.load(new URLRequest(file.url)); tmpTopic.addChildAt(loader,0);
tmpTopic is a container MC that I'm adding the resulting loaded swf into.
finalListingArray is my file listing
topicNum is the current item in that array.
stopLoadedContent is a function that tells each SWF to stop playing it's content.
Here is one of the errors I'm getting:
SecurityError: Error #2070: Security sandbox violation: caller file:///pathToMySWF/fileBeingLoaded.swf cannot access Stage owned by app:/MyAirApp.swf. at flash.display::Stage/set quality() at fileBeingLoaded_fla::sceneMC1_3/frame2()
PLEASE HELP!
NativeProcess is not work
Hello,
I create one air application in that i set profile desctiptor
<supportedProfiles>extendedDesktop desktop</supportedProfiles>
also set version of 2.0
<application xmlns="http://ns.adobe.com/air/application/2.0">
When i run applicaton within flex builder NativeProcess is working but When i create a .air package and install in my desktop NativeProcess is not Working.
is any solutions / way to solve this , please tell me.
Thanks in advance.
Packaging .air file to .dmg via ANT
First off, I hope someone sees this as this Archive thread is the only place the forum is allowing me to post my air related question.
So, I'm having some trouble packaging (via ANT) my air 2.0 app into a .dmg file that can be run as a native installer.
(I am running this on MacOSX 10.6.4 w/ a JRE 1.6.0_20)
I should note that I can package a .dmg fine from the terminal via > adt -package -target native TestApp.dmg TestApp.air
but attempting to do the same thing from an ANT task throws a host of various errors.
For example :
Running the following task throws errors saying that I have to include the signing options I used when I compiled the air app.
<target name="package to dmg">
<java jar="${ADT}" fork="true" failonerror="true" maxmemory="512m">
<arg value="-package"/>
<arg value="-target native"/>
<arg value="TestApp.dmg"/>
<arg value="TestApp.air"/>
</java>
</target>
Throws error : [java] Signing options required to package from descriptor and fileset etc...
My assumption is that this task should execute idential to the following terminal command :
> adt -package -target native TestApp.dmg TestApp.air
So I add my signing options and the compiler complains that now it can't see or load my app descriptor file.
My understanding is that it shouldn't need the app descriptor since it already used that file when it compiled the swf into the air app?
<target name="package to dmg"
<java jar="${ADT}" fork="true" failonerror="true" maxmemory="512m">
<arg value="-package"/>
<arg value="-storetype"/>
<arg value="${STORETYPE}"/>
<arg value="-keystore"/>
<arg value="${KEYSTORE}"/>
<arg value="-storepass"/>
<arg value="${CERT_PASSWORD}"/>
<arg value="-target native"/>
<arg value="TestApp.dmg" />
<arg value="${DESCRIPTOR_FILE}"/>
<arg value="-C"/>
<arg value="${BUILD_DIR}"/>
<arg value="."/>
</java>
</target>
Throws error : error 301: Application descriptor missing/cannot be opened
I have tried every combination of ADT arguments I can think of but to no avail.
Like I said, I can compile the air app fine and launch it in the ADL as well as install it on my system, it's just the packaging to .dmg from ANT that is giving me pain.
Any suggestions would be really appreciated.
Thanks,
Stephen
Here is a link to my full build script that may help you see what's going on.
http://www.quietless.com/tmp/build.xml
properties files here:
http://www.quietless.com/tmp/proj.properties
http://www.quietless.com/tmp/cert.properties
Message was edited by: braitsch
Communication between two or more AIR Applications
Is there a way to actually create adobe applications (written in Flex) to communicate with each other or simply pass data to one another? Like send variables to the anoother and then process that variable, then return it again to the app that sent it.
Thanks.
Desktop AIR 2.5 application with transparency and embedded Flash with wmode transparency error
I'm working on a desktop AIR project using the 2.5 SDK (ADT) to create an application that combines html and flash content. My application is using systemChrome none and transparent true. I have an swf element in my html file that I have set to wmode transparent. Instead of the swf rendering with a transparent background and showing the desktop like the html content does, I'm seeing a black box that fills the area where the Flash element is embedded.
Can someone please assist me in removing this black square so that my flash content is rendered within the html file with a transparent background instead of a black background?
When the AIR application is set to transparent, the Flash content must have it's wmode set to either transparent or opaque. Opaque gives it a white background (the stage background color), but transparent seems to just give it a black background.
Thanks!
What is the best method for device detection
What is the best way to detect a desktop (touchscreen kiosk) from a smartphone from a tablet? touchscreenType gets me part of the way there, dpi a little bit more (is that reliable?) Is there a sure-fire method?
How to (re) take fullscreen when AIR app is restored from dock/task bar?
Porting an AS3 app to AIR -- learning AIR as I go.
Switched to AIR because we need to minimize our app to taskbar/dock -- works nicely.
But when I listen for Event.ACTIVATE and then try to NativeWindow.maximize(), it doesn't work.
Found the bug thread with the workaround (http://forums.adobe.com/message/3251136), which is to listen to the display stage change and if the current window stage is NORMAL then to maximize.
stage.nativeWindow.addEventListener(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, onDisplayStateChange);public function onDisplayStateChange(evt:NativeWindowDisplayStateEvent):void{ if (evt.afterDisplayState == NativeWindowDisplayState.NORMAL) stageDetails();}
Is this still best option?
Also, when I maximize() using the above technique on the Mac the menubar is still visible. How to get back to fullscreen?
Thanks!
create a live wallpaper for android with flash
Already know how to create android applications with flash cs5.5 but i would to know how to do to set an application as a live wallpaper.
Anyone can help me?
Cannot sign with certificate when packaging from descriptor and fileset - ADT
Hi,
I'm trying to use ADT to package my AIR 2.5 application as a native installer and use my own certificate to sign it. However, when I run the following command:
adt -package -target native -storetype pkcs12 -storepass password -keystore certificate.p12 -keypass password -tsa none IDA-shell.exe shell-app.xml shell-0.5-RELEASE.swf classes
it doesn't build an executable and gives the following message:
Signing options required to package from descriptor and fileset.
I'm just following the Adobe docs on this, so why isn't it working?
Thx in advance
troubleshooting Error #2044: Unhandled ErrorEvent:. text=
Need your help/support in troubleshooting issue with video load.
I have developed a custom media player to load .flv files from a CDN.
The AIR application is working fine and loading files videos from the CDN location, but while loading few files it shows few bytes are loaded in VideoProgressEvent.PROGRESS event and then it throws the below error.
Error Trace:
/******************************************************************************
Video PRogress::BytesLoaded::66 Bytes Total::14543
Video PRogress::BytesLoaded::524 Bytes Total::14543
Error #2044: Unhandled ErrorEvent:. text= at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_createStream() at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_load() at fl.video::VideoPlayer/load() at fl.video::FLVPlayback/doContentPathConnect() at fl.video::FLVPlayback/set source() at mmplayer::FLVPlayer/set url() at mmplayer::CustomPlayer/set mediaURL() at mmplayer::CustomPlayer/resultHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
/**************************************************************************************
I am using CS5 for publishing the file and below are the publish setting:
Adobe AIR 2
ActionScript 3.0
I have also checked for the sandbox issues and added DRM events, but its not throwing any, also its not providing the error text(Error #2044: Unhandled ErrorEvent:. text=).
Please any pointers/help will be much appriciated.
64 bit version of Adobe Air (Windows)
Hello
We are developing an Adobe Air application on windows, but in our case we need lots of RAM, and a 32 bit system can not use much RAM. We would like to know if there is a 64 bit version of Adobe Air or if such version will ever be launched.
AIR 3.4 + Socket - problem with incoming data from serial port
Hi everyone,
First of all, sorry for my english, i'll try to explain my problem the best I can..
I'm trying to retreive the sound pressure level from my sound level meter (Voltcraft SL-300) in my AIR app.
To do so and after some researches, I just plugged it with an USB cable to my pc, downloaded Serproxy, followed this super nice tutorial:
http://cookbooks.adobe.com/post_Read_Write_to_serial_port_from_Adobe_Air-17484.html
and it worked! I was able to retreive some datas, but not perfectly...
When I want to see what exactly my socket is sending, here is the result:
As wrote in the tutorial, i'm using this to read bytes:
_socket.readMultiByte(_socket.bytesAvailable,
"ISO-8859-1"
);
The thing is i'm totally noob when it comes to Bytes and I have no idea what else I can do nor wich direction my reseaches have to take...
So I did some very simple/generic things like:
- test with all charsets available here: http://help.adobe.com/en_US/air/reference/html/charset-codes.html
- tried the solution of this guy: http://stackoverflow.com/questions/4099485/getting-my-serial-port-to-talk-to-my-adobe-air- app
but with no result...
Any idea?
Thanks!