Air 2.0 in Flex Builder 3
I need to use the NativeProcess API available in Air 2.0 so went about doing this by including the Air2.0 SDK in Flex Builder 3 which gave me access to the APIs. I wrote my app and it worked beautifully within Flex Builder 3.
However, when I export a release build (.air file) and attempt to install it I get the following error:
"Sorry, an error has occurred.
This application requires an update to Adobe AIR that is not available for your system.
I have installed Air 2.0 on my system (done it several times to make sure).
I have the following namespace in my .xml file:
<application xmlns="http://ns.adobe.com/air/application/2.0beta">
Could this be the issue?
If anyone can shed some light on this that would be great.
Was looking forward to using the features offerred in Air2.0 but am at a stand still now.
Hi Neha,
Again thank you for your help but unfortunately still cannot get this working, I have resorted to using the exact files (except the swf) and instructions at http://www.adobe.com/devnet/air/flex/quickstart/interacting_with_native_process_print.html to try and get some sort of example of NativeProcess working and after some tweeking got it to build the exe but running it gives me the same error i started with:
"This application requires an update to Adobe AIR that is not available for your system."
One of the tweeks i made was to the namespace in the xml file, it had to be:
<application xmlns="http://ns.adobe.com/air/application/2.0beta">
http://ns.adobe.com/air/application/2.0 was not recognised running the adt command (got error 102: invalid namespace).
I really want to be able to get this working so I can determine if NativeProcess is the solution to my project.
Maybe if I explain my needs you could possibly offer a better, proven solution:
I have an existing Air desktop app (originally Air 1.0) that is invoked from the browser, I would like an additional feature to this app that executes a command line call to make something happen on the users machine - specifically add a track to the users iTunes library.
Any ideas would be greatly appreciated.
Thanks,
Bilge.
Similar Messages
-
Install error in Air application created in Flex builder
Hi all,
When I export the release version of an AIR project, and
attempt to
run the resulting AIR file, I get the error "The application
could not
be installed because the AIR file is damaged. Try obtaining a
new AIR
file from the publisher." This happens every time, with every
project.
I even created a new project, and tried exporting that
project without
adding any of my own code to it and still the same error. The
export
process does not generate any errors.
I ' ve adobe cs3 and Flash Player 10. Adobe flex_sdk_3 and
airsdk also installed.But .air file was can't install
Thanks in Advance,hello tzeng,
The air file was created by using Flex Builder 3 .One xml
file and mxml file were used. The project export release the .air
file (installer package ). When i install the .air file that error
has occured.
Thanks for reply, -
Error in air application created by flex builder
Hi all,
When I export the release version of an AIR project, and
attempt to
run the resulting AIR file, I get the error "The application
could not
be installed because the AIR file is damaged. Try obtaining a
new AIR
file from the publisher." This happens every time, with every
project.
I even created a new project, and tried exporting that
project without
adding any of my own code to it and still the same error. The
export
process does not generate any errors.
I ' ve adobe cs3 and Flash Player 10. Adobe flex_sdk_3 and
airsdk also installed.But .air file was can't install
Thanks in advance,hello tzeng,
The air file was created by using Flex Builder 3 .One xml
file and mxml file were used. The project export release the .air
file (installer package ). When i install the .air file that error
has occured.
Thanks for reply, -
Different behaviour air apps running in flex builder or standalone
Hello,
<mx:HTML location="
http://www.google.com"
id="myBrowser">
I try to get the mouse selected text in my browser with the
following javascript bridge :
myBrowser.htmlLoader.window.getSelection().toString()
That work fine when my apps is running throw the flex builder
IDE.
But when it running as a standalone on the same computer, I
get an empty string.
Do you know why ?
Thanks
BenVery helpful! Should be placed in the blazeDS docs!
Chris -
Error when trying to install any air application from my flex builder project
I have a serious problem, I am unable to install any exported air file created in my AppTest project. I just keep getting an error saying: "Sorry, an error has occurred. The application could not be installed because the AIR file is damaged. Try obtaining a new AIR file from the application author."
I am using FlexBuilder 3 to build and export my app release build. If anyone can help me I would greatly appreciate it.
AdamI'd try un-then-reinstalling and making sure any overlay that you're applying (update of SDKs, etc.) are done correctly.
-
AIR apps won't launch from flex builder
Hi,
I am currently working on my first AIR app inside of Flex
Builder 3. For some reason, when I try to launch, profile, or debug
the app, it does it's normal "Loading.." message in the
bottom-right corner, but will never launch. The loading message
just disappears and the app never shows up. I do have the AIR
runtime installed. I receive this message when trying to profile
the application:
Process terminated without establishing connection to
debugger.
Command:
"C:\Program Files\Adobe\Flex Builder
3\sdks\3.0.0\bin\adl.exe" "C:\Personal\Freelance
Projects\MyBoatData_Prototype\bin-debug\MyBoatData-app.xml"
"C:\Personal\Freelance Projects\MyBoatData_Prototype\bin-debug"
Output from command:
invocation forwarded to primary instance
Can anyone help?If you are using mx:Application, you need to set visible as
true in the app.xml file.
Also make sure that no instance of adl is already running. If
so kill that instance via task manager.
Thanks,
Gaurav -
AIR app won't launch from flex builder
Hi,
I am currently working on my first AIR app inside of Flex
Builder 3. For some reason, when I try to launch, profile, or debug
the app, it does it's normal "Loading.." message in the
bottom-right corner, but will never launch. The loading message
just disappears and the app never shows up. I do have the AIR
runtime installed. I receive this message when trying to profile
the application:
Process terminated without establishing connection to
debugger.
Command:
"C:\Program Files\Adobe\Flex Builder
3\sdks\3.0.0\bin\adl.exe" "C:\Personal\Freelance
Projects\MyBoatData_Prototype\bin-debug\MyBoatData-app.xml"
"C:\Personal\Freelance Projects\MyBoatData_Prototype\bin-debug"
Output from command:
invocation forwarded to primary instance
Can anyone help?You might have the ADL open already and had a bug, so it's
not going to show the new application.
You need to manually close ADL first before you try debugging
another time. If you're on a PC, use Task Manager ->
Processes... and end ADL.EXE
Then try running the app again... it should sort it
out. -
How to build/run the SampleVideoPlayers in Flex Builder
The source for building the Flash Player and AIR Sample Video Players using Adobe Flex Builder 3.2 is located \Sample Video Players\Flash Player\Source and \Sample Video Players\AIR\Source respectively.
Flash Player Runtime
(Mac and Windows)
• Copy the file playerglobal.swc located in the Sample Video Players\Flash Player\playerglobal.swc folder to <FlexBuilderInstallDir>\sdks\3.2.0\frameworks\libs\player\10 folder.
• Copy the Player source folder located in \Sample Video Players\Flash Player\Source to your local hard drive.
• Launch Flex Builder and import the project.
• Select the SampleVideoPlayer_FP project.
• Go to Project - Properties - Flex Compiler to make sure you are using the Flex 3.2 compiler.
AIR Runtime
(Mac)
• Mount Mac_AIR_2.0_SDK.dmg.
• Copy the SDK files using the command:
ditto /Volumes/AIR\ SDK /Applications/Adobe\ Flex\ Builder\ 3/sdks/3.2.0/
• Copy the file airglobal.swc located in the Sample Video Players\ AIR\airglobal.swc folder to <FlexBuilderInstallDir>\sdks\3.2.0\ frameworks\libs\air folder.
• Copy the AIR source folder located in \Sample Video Players\AIR\Source to your local hard drive.
• Launch Flex Builder and import the AIR project.
• Select the SampleVideoPlayer_AIR20 project.
• Go to Project - Properties - Flex Compiler to make sure you are using the Flex 3.2 compiler.
(Win)
• Copy the files in Win_AIR_2.0_SDK to to <FlexBuilderInstallDir>\sdks\3.2.0\.
• Copy the AIR source folder located in \Sample Video Players\AIR\Source to your local hard drive.
• Launch Flex Builder and import the AIR project.
• Select the SampleVideoPlayer_AIR20 project.
• Go to Project - Properties - Flex Compiler to make sure you are using the Flex 3.2 compiler.Thanks for your replies.
Could you please let me know where genarated AS files will reside in Flex builder ?.
Thanks
Praveen. -
Hi All,
Does anyone have sample code how to consume and use the Docconverter service from Adobe Livecycle 8.2 ES in Flex Builder 3.0 AIR Application. I want to consume both the methods 1) toPDFA and 2) isPDFA methods to convert a PDF to PDFA and to check the compliance after conversion. If any one could help me in this, would be very grateful.
Thanks in advance
Umashanker.KI think the problem you are experiencing is this one:
http://subclipse.tigris.org/issues/show_bug.cgi?id=511
You probably have Subclipse 1.2.4 installed, which is the
latest official release. But the new release based on Subversion
1.5 has been in development for over a year. It will be version
1.4.0 and probably released next week when Subversion 1.5 is
released. -
Flex Builder 3.3 need to add AIR 2.0 SDK
I have an AIR app developed using Flex SDK 3.3 and need to add new functionality contained in AIR 2.0 SDK - e.g. openWithDefaultApplication().
How can I add the updated AIR SDK to give me access to this new method ?This is pretty easy, but not too intuitive. You will first need to download the version of the SDK that includes the version of AIR that you wish to use. Then following these instructions to get it to work : http://quetwo.com/2008/10/26/flash-player-10-and-flex/ (those instructions were written to get a specific feature working in an older version of Flash Player, but you should get the basics from it).
Essentially, you extract the SDK version into your SDKs folder in your copy of Flash Builder/Flex Builder. Then you tell Flash Builder about the new SDK that you have available. -
Flex Builder truncate/drop variables for AIR App
I have built and compiled a Air Application with Local
versions of Coldfusion 8.0.1, Flexbuilder 3.0.2... When I Access
the SWF via browser as in
http://127.0.0.1:8300/Census.swf
everything is great and data is filled in my Datagrid.
HOWEVER, when I compile/run the AIR App (from flex builder)
on the desktop: I get this error…
[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Failed:
url: '
http://ensus.swf/flex2gateway/cfamfpolling'"
What is interesting is the real file is truncated (ensus.swf
not Census.swf) and the IP/Port number are omitted
Using a cf-polling-amf channel where the Server name and
variables are correctly designated as:
<channel-definition id="cf-polling-amf"
class="mx.messaging.channels.AMFChannel">
<endpoint uri="
http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>8</polling-interval-seconds>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
and the crossdomain.xml exists as well
Also - If there were issues with the service-config.xml for
the channel definitions - wouldn't the SWF have failed to access
data as well?
Any thoughts???You can look at here:
http://sherifabdou.com/2008/06/hardcoding-the-endpoint-for-air-and-coldfusion-remoting/
I am not familiar with this. You can google AIR coldfusion
endpoint to look at related discussion.
-ted -
CS4 or FLEX Builder for AIR Application?
Hello,
I have installed CS4 and Flex builder 3. I would like to develop some desktop applications, which is the best editor to develop AIR application?
Thank youI faced a similar choice recently: Flash or Flex for developing CS4 panels.
John Nack advised me to use Flex Builder. He was right. For a desktop AIR application or something like CS4 panels, the Flex Builder IDE is more powerful and helpful. If you're a developer familiar with other programming tool IDEs, like Microsoft Visual Studio, various Java IDEs, etc. then you will find the Flx Builder IDE to be more intuitive.
Flash is a good choice for developing animated SWF panels that are driving things like Flash movies. If you use Flash, you'll have to deal with the Timeline. With Flex Builder, you don't.
They both provide access to Action Script. But they expose functionality differently. Also, Flex Builder provides some data visualization tools, etc. that are not part of Flash.
Mitch -
AIR app and Flex app in same Flex builder project
Hi,
I've developed a flex app with a lot of custom components.
Now I want to create a desktop version of the same using the same
exact same components. Is it possible that I add an mxml
application, make it a WindowedApplication and compile it to
produce an AIR app? Or are there any workarounds to accomplish
this.Easiest way I have found is to complete your Flex Web app.
Then create a new Flex AIR app and then copy code from your working
Flex Web app over.
Yes, you end up with two complete sets of code, but if that
is going to become an issue with keeping both versions up to date
you can simply use one set of source.
To do this, create two projects, one Web, one Air. Then you
can create a third folder (not project) that contains all the
common code.
In each of your projects, simply import the code you want to
use using the project options.
No, not ideal, but does work. Would be nice to see Flex
Builder changed so you can have rooted projects.
E.g. A project called "MyBigApplication" that isn't targetted
at any platform. Within this you could then produce sub-projects
that target a particular platform, be it web or air but share code.
Maybe in the next version.....
Cheers
Ian -
AIR Extentions for Flex Builder 2
I was watching some video's on lynda.com about developing
AIR/Apollo applications with Flex, so I bought the software. One
thing it mentioned was to make sure and install the Apollo
extentions for Flex which can be found at the adobe website. I can
not find the extenions anywhere!? Can anyone point me in the right
direction as to where I can find the extentions?
Thanks in advance.
Greggood to know. If I try the Beta version of Flex 3 with my
Flex 2 serial number, will I be locked into using the Beta version?
Or will I be able to upgrade to the full version Flex 3 when it is
released? Thanks in advance. -
How can I create an executable with Flex Builder 3?
I'm working with Flex Builder 3 right now and I've run my
head into a brick wall. Here's the situation:
I'm creating a standalone application (runs in its own
window, not in a web page) and I want to run it on a computer that
does not have Flex Builder 3 installed. Help files and web searches
haven't directed me to the right answer, so I was hoping that
someone on this forum could help. Anyone know how to create a .exe
file or something else that can be run outside of Flex Builder?
Thanks a lot for any help!quote:
Originally posted by:
rob_parkhill
Convert it to an AIR Application?
Thanks Rob,
This may be what I'm looking for, but I don't know enough
about the difference. I guess I should have pointed out that I'm a
complete Flex Novice!
Anyway, with Flex Builder, I created an MXML Application. I
went through all my various options again in Flex Builder and found
that under the project menu, I could export a release build in what
appears to be the format you mentioned. I managed to create a .air
file, but it is not a recognized file type on my computer. I tried
double clicking it and the built-in windows services couldn't even
find a possible way to run it. Am I missing some important step?
Thanks again.
Maybe you are looking for
-
I have several old Kodak Photo CD with PCD image files. I am now using Photoshop CS5. Some years ago while using Photoshop CS4 I copied a file: "Photo CD.8BI" from an older, CS2, version to the Plug-ins/File Format folder of CS4. This does not ap
-
Server/client with HttpURLConnection
Hi, i need some help because i haven't dealt with java networking in the past. The scenario is: The client sends a string to the server via HTTP protocol (with use of the HttpURLConnection class). The server then sends to the client the reverse of th
-
How to calculate actual activity price using cost center balance
I have a problem,the case is that: i have two pro.order. orderA settlement to cost center M; orderB is a standard pro.ord,and the work center of orderB link to cost center M. when i calculate the actual activity revaluation.the activity price update
-
Hi, Is there a possibility in an ODI interface to set a number of expected records, that the interface should at least return. I would need such an option and - if the number of records is less than the expected number a warning should be shown in th
-
System assigning Contact Number before saving the contact
Hi , In CRM Dev client and CRM QA system is assigning Number for the contact (Business Partner) before saving the contact in webui. Because of this, system is updating the Contact created time in BUT000 as the Number assignement time and not the actu