Installing an AIR application from the browser
I am installing an application using a custom badge.
Is there any documentation on air.swf?
After air.installApplication() is called is there anyway to know what happens, i.e. some event to listen to.
How can I know when installation is complete or if it fails due to an error.
Currently the web page stops at starting to install and I would like it to be a bit more professional so it can either reflect any error or show the installation is complete.
quote:
Originally posted by:
cjm771
can't manage to figure out how the air.swf api works
The main thing you must understand about air.swf
is that its most important functionality can only be called from
within a UI event handler, such as for a button click. It's very
picky about this. You can't, for example, use the button click
event handler to begin the loading of air.swf, then in the "loaded"
callback do the air.swf API call. air.swf has to be loaded and
ready at the time the event handler is called. So, load it on app
startup. I even go to the extent of disabling the buttons that call
into air.swf until it's loaded.
quote:
im a bit unclear on where i get appid or developer id
The appid is your application's unique ID, which
you gave in setting up your project. Adobe recommends using
something based on your web site's domain name, in reverse order as
is done in Java and Objective C. If you're at foo.com, and call
your program Qux, then com.foo.qux is a good appid. The use of
domain-like names helps ensure that programs from different
companies don't collide with each others' namespaces.
By default, the pubid is a random number assigned by the IDE.
I forgot how you find out what number it used, just that there's a
way. Or, you can assign it yourself, in the project settings for
the AIR app. Right-click the project, go to the Run/Debug Settings
section, edit the launch configuration for your AIR app. You'll
find a Publisher ID field there. The documentation for ADL may be
helpful for picking your own pubid.
quote:
if someone has an example app or more in-depth explantion of
incorporating the given code , i would much appreciate it.
See my code in this thread:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=75&catid=697&threadid =1352505&highlight_key=y&keyword1=air%2Eswf
Similar Messages
-
I tried to install a free application from the apple store, I was asked to enter the billing information even if free, gave all the details, chose visa as method of payment but I had a note saying that my method of payment is invalid. Why?
Hi ...
Try here > iTunes Store: My credit card's security code or zip code does not match my bank's records -
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.
-
Is it possible to install multiple AIR applications from single install?
I've been asked to find a way to install multiple air applications in one install. Is this possible, or am I going to have to use a 3rd party tool like InstallShield?
I guess it's possible to create a meta-installer, which fires up the individual installers using the command line. It's not the ideal way to do this, but it might work.
Sample code to use the command line from within Flex:
<fx:Script>
if(NativeProcess.isSupported)
var file:File = File.desktopDirectory;
file = file.resolvePath("secondAirProgram.air");
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
var process:NativeProcess = new NativeProcess();
process.start(nativeProcessStartupInfo);
</fx:Script> -
Firefox 11 will not install air or start air application from the badge install
Seems to work in Chrome, but I need this to work from within firefox...11 is the default for the windows platform we must use.
Running window 7 64-bit for development, and the air app is html javascript (J Query) created in dreamweaver 5.5
any help...thanksStrange - You can't even install it directly on the phone from the App Store. Have a look [http://support.apple.com/kb/TS1702 this Apple troubleshooting article]. Beyond that, Apple would probably be better equipped to help you.
Let us know if you have any new information. -
Error #1009 in as3 code to install an Air application from an embedded swf.
Hi, I am getting error #1009 in my code when i try to install the application. I am new to action script and below is the code for my installer.
var airSWF:Object; // This is the reference to the main class of air.swf
var airSWFLoader:Loader = new Loader(); // Used to load the SWF
var loaderContext:LoaderContext = new LoaderContext();
// Used to set the application domain
var paramObjAppid:Object = LoaderInfo(this.root.loaderInfo).parameters.appid;
//var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
airSWFLoader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
airSWFLoader.load(new URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"),
loaderContext);
function onInit(e:Event):void
airSWF = e.target.content;
var url = '';
var qty = '';
var appID = '';
var pubID = "";
var runtimeVersion = "3";
var tf:TextField = new TextField(); // create a TextField names tf for debugging
tf.autoSize = TextFieldAutoSize.LEFT;
//tf.size = 4;
tf.wordWrap = true;
tf.border = true;
addChild(tf);
try
var keyStr:String;
var valueStr:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; //set the paramObj variable to the parameters property of the LoaderInfo object
for (keyStr in paramObj)
valueStr = String(paramObj[keyStr]);
if ( keyStr == 'qty' ) {
qty = Number(valueStr);
if ( keyStr == 'url' ) {
url = escape(valueStr);
if ( keyStr == 'appid') {
appID = valueStr;
catch (error:Error)
var arguments:Array = [qty];
launchBtn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
function fl_MouseClickHandler_2(event:MouseEvent):void
airSWF.getApplicationVersion(appID, pubID, versionDetectCallback);
function versionDetectCallback(version:String):void
if (version == null)
trace("Not installed.");
tf.appendText('Not Installed');
try {
airSWF.installApplication(url, runtimeVersion, arguments);
catch (error:Error){
tf.appendText(error.toString());
else
trace("Version", version, "installed.");
tf.appendText("appID="+appID);
try {
airSWF.launchApplication(appID, pubID );
catch(error:Error) {
tf.appendText(error.toString());I managed to figure out what was causing the issue, I had a particular png image in my projects assets folder that seemed to be the culprit. Once I removed it the app installs just fine? Really weird?
Adam -
Installing a single application from the original disks
Long ago I remember reading about software that will let you pick and choose which applications you want to install from your original eMac disks. The name of that software please?
Thanks!
ScottHello Scott,
Its called.... ( drum roll please... )
Pacifist!
Regards
Ian -
Launch air application from browser like adobe connect pro
I will like to install and launch my adobe air application from the browser, just like adobe connect pro does. Any help on this?
Did you try ...
location.href = url -
How to Call a AIR application from Flex Application
Hi,
I have Used AIR (Desktop application) in Flex Builder to Upload a File from a local path and save it it a server path.
I need to Call this AIR(Desktop application) from my Flex Application.... i.e
I am using a link button to send a event using Script and Forward that Desktop application from Flex Screen
But it doesnot load that (Desktop application) in Screen. Only Balnk screen is loaded from path
Here is the code
AIR(Desktop application)
<?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="openBrowseWindow();">
<mx:HTTPService id="urlpath" showBusyCursor="true" useProxy="false" method="
POST" url="http://localhost:8080/nat/FlexAction.do?method=UrlPath"result="pathresult(event)"
fault="faultHandler(event)"
>
</mx:HTTPService>
<mx:Script>
<![CDATA[
import mx.events.FileEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.utils.ObjectUtil;
import mx.controls.Alert;
private
var openFile:File = new File()
private
function openBrowseWindow():void{openFile.addEventListener(Event.SELECT, onOpenFileComplete);
openFile.addEventListener(Event.OPEN, load);
openFile.browse();
private
function load():void{Alert.show(
"load");
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
//var textTypes:FileFilter = new FileFilter("Text Files (*.txt, *.rtf)", "*.txt; *.rtf");
var allTypes:Array = new Array(imageTypes);openFile.browse(allTypes);
private
function faultHandler(event:FaultEvent):void {
//Alert.show("Fault")Alert.show(ObjectUtil.toString(event.fault));
private
function pathresult(event:ResultEvent):void{Alert.show(
"res")
//Alert.show(ObjectUtil.toString(event.result));}private
function onOpenFileComplete(event:Event):void{
//mx.controls.Alert.show("event: "+event.target.nativePath +"UR!!!");
var pPath = event.target.nativePath;
var parameters:Object = {FlexActionType:"PATH",path:pPath};
// Alert.show("Image Selected from Path : "+pPath); urlpath.send(parameters);
//Alert.show("Passed.."+parameters);}
]]>
</mx:Script>
<mx:Button click="openBrowseWindow();onOpenFileComplete(event)" name="Upload" label="Upload" x="120.5" y="10"/>
Here is Mxml Code for Flex Application
<?xml version="1.0" encoding="utf-8"?><mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="http://ns.adobe.com/air/application/1.0.M4" >
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function Upload():void{
// CursorManager.setBusyCursor();
//var url:String = "HomeAction.do?method=onLoad";
//var url:String = "assets/Air.swf";
var url1:URLRequest = new URLRequest("assets/Air.swf");navigateToURL(url1,
"_self");
// CursorManager.removeBusyCursor(); }
]]>
</mx:Script>
<mx:LinkButton id="up" click="Upload()" x="295" y="215" label="UpLoad"/>
In this code i forward using s url to Open tat Desktop application but a blank screen appears with out the proper output...
Please Help me in this to forward AIR from Flex Screen..
Thanks in Advance
With Regards
Gopinath.A
Software Developer
First Internet Systems Pvt. Ltd.,
Chennaitry this
http://www.leonardofranca.com/index.php/2009/09/17/launching-an-installed-air-application- from-the-browser/
regards
Leonardo França
Adobe Certified Expert Flex 3 with AIR
Adobe Certified Expert Rich Internet Application Specialist v1.0
Adobe Certified Expert Flash CS3 Professional
Certified Professional Adobe Flex 2 Developer
Adobe Certified Professional Flash MX 2004 Developer
http://www.leonardofranca.com
http://twitter/leofederal
Manager AUGDF - Adobe User Group do Distrito Federal
http://www.augdf.com.br
http://twitter/augdf -
Can't install air application from website
I am trying to install an Adobe Air application from a local
web page using badge but get the "Something went wrong trying to
install this application"
When I click on the .air file directly all works ok
One thing I've noticed is that if I try to launch the .air
file from the browser, it doesn't to know what program to use to
open the file as buttons on the (Do you want to save this file or
find a program online to open it) dialog are Find, Save and Cancel
(Not Open).
I've checked the file extensions in Internet Tools and the
program for .air is Adobe Air Application Installer which I assume
is correct.
I've also checked that the MIME entry is correct on IIS
I'm running on a 32bit machine with Vista Business and using
IE7
Can anyone help me please, I've been stuck on this for
agesHowdy Niel
Looks like Apple has opened it's kimono a bit...
Statement from Apple to CNBC ± 10:00 PDT-US
from http://www.cnbc.com/id/102495735
"We apologize to our customers experiencing problems with iTunes and other services this morning. The cause was an internal DNS error at Apple. We're working to make all of the services available to customers as soon as possible, and we thank everyone for their patience," Apple said in a statement to CNBC.
ÇÇÇ -
Terminate air application from browser . Help !
I have managed to call AIR application from flex application using
airSWF.launchApplication(appID, pubID, arguments);
How can i stop the AIR application from the flex application running in browser. Any help would be helpful.Did you try ...
location.href = url -
AIR Intrinsic Classes-Tried and Proven Approach to building AIR applications in the Flash CS3 IDE
Hi everyone,
For all of you out there who would like to develop AIR
applications
from the Flash CS3 IDE but aren't sure how to get those pesky
intrinsic
classes working, I have a technique that you can work with to
create
your classes and make fully functional AIR applications.
First of all, those solutions out there that list
"intrinsic" functions
in their class definitions won't work. That keyword has been
taken out
and simply won't work. The "native" keyword also doesn't work
because
Flash will reject it. The solution is to do dynamic name
resolution at
runtime to get all the classes you need.
Here's a sample class that returns references to the "File",
"FileStream", and "FileMode" classes:
package com.adobe{
import flash.utils.*;
import flash.display.*;
public class AIR extends MovieClip {
public static function get File():Class {
try {
var classRef:*=getDefinitionByName('flash.filesystem.File');
} catch (err:ReferenceError) {
return (null);
}//catch
return (classRef);
}//get File
public static function get FileMode():Class {
try {
var
classRef:*=getDefinitionByName('flash.filesystem.FileMode');
} catch (err:ReferenceError) {
return (null);
}//catch
return (classRef);
}//get FileMode
public static function get FileStream():Class {
try {
var
classRef:*=getDefinitionByName('flash.filesystem.FileStream');
} catch (err:ReferenceError) {
return (null);
}//catch
return (classRef);
}//get FileStream
}//AIR class
}//com.adobe package
I've defined the package as com.adobe but you can call it
whatever you
like. You do, however, need to import "flash.utils.*" because
this
package contains the "getDefinitionByName" method. Here I'm
also
extending the MovieClip class so that I can use the extending
class
(shown next) as the main Document class in the Flash IDE.
Again, this is
entirely up to you. If you have another type of class that
will extend
this one, you can have this one extend Sprite, Math, or
whatever else
you need (or nothing if it's all the same to you).
Now, in the extending class, the Document class of the FLA,
here's the
class that extends and uses it:
package {
import com.adobe.AIR;
public class airtest extends AIR{
public function airtest() {
var field:TextField=new TextField();
field.autoSize='left';
this.addChild(field);
field.text="Fileobject="+File;
}//constructor
}//airtest class
}//package
Here I'm just showing that the class actually exists but not
doing much
with it.
If you run this in the Flash IDE, the text field will show
"File
object=null". This is because in the IDE, there really is no
File
object, it only exists when the SWF is running within the
Integrated
Runtime. However, when you run the SWF as an AIR application
(using the
adl.exe utility that comes with the SDK, for example), the
text field
will now show: "File object=[object File]". Using this
reference, you
can use all of the File methods directly (have a look here
for all of
them:
http://livedocs.adobe.com/labs/flex/3/langref/flash/filesystem/File.html).
For example, you can call:
var appResource:File=File.applicationResourceDirectory;
This particular method is static so you don't need an
instance. If you
do (such as when Flash tells you the property isn't static),
simply
create an instance like this:
var fileInstace:File=new File();
fileInstance.someMethod('abc'); //just an example...read the
reference
for actual function calls
Because the getter function in the AIR class returns a Class
reference,
it allows you to perform all of these actions directly as
though the
File class is part of the built in class structure (which in
the
runtime, it is!).
Using this technique, you can create references to literally
*ALL* of
the AIR classes and use them to build your AIR application.
The beauty
of this technique is its brevity. When you define the class
reference,
all of the methods and properties are automatically
associated with it
so you don't need reams of code to define each and every
item.
There's a bit more that can be done with this AIR class to
make it
friendlier and I'll be extending mine until all the AIR
classes are
available. If anyone's interested, feel free to drop me a
line or drop
by my site at
http://www.baynewmedia.com
where I'll be posting the
completed class. I may also make it into a component if
there's enough
interest. To all of you who knew all this already, I hope I
didn't waste
your time.
Happy coding,
PatrickWow, you're right. The content simply doesn't show up at all.
No
JavaScript or HTML parsing errors, apparently. But no IE7
content.
I'll definitely have to look into that. In the meantime, try
FireFox :)
I'm trying to develop a panel to output AIR applications from
within the
Flash IDE. GSkinner has one but I haven't been able to get it
to work
successfully. Mine has exported an AIR app already so that's
a step in
the right direction but JSFL is a tricky beast, especially
when trying
to integrate it using MMExecute strings.
But, if you can, create AIR applications by hand. I haven't
yet seen an
application that allows you to change every single option
like you can
when you update the application.xml file yourself. Also, it's
a great
fallback skill to have.
Let me know if you need some assistance with AIR exports.
Once you've
done it a couple of times, it becomes pretty straightforward.
Patrick
GWD wrote:
> P.S. I've clicked on your link a few times over the last
couple of days to
> check it out but all I get is a black page with a BNM
flash header and no way
> to navigate to any content. Using IE7 if that's any
help.
>
>
>
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to
new heights.
Download the BNMAPI today. You'll wonder how you ever did
without it!
Available for ActionScript 2.0/3.0. -
Installing and Running Air application from webpage
Hello ,
I am trying to run the air application from web page and its working fine in my system. (http://localhost:8080/examples/test1.html)
if i try to run the same air application from another system's webpage by pointing the url to my system's IP Address,(http://lpAdres of my system:8080/examples/test1.html) its showing error "The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author"
Air Application version are . Flex3.6 sdk and Air2.7 sdk & runtime
Any of you know what could be the problem.
please help em to resolve this issue asap.
its very urgent requirementHi, Jeff;
Make sure you have compiled your application as 32 bit, and not "any cpu".
See this document for some more info: [64|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10d5fa88-2013-2c10-c9a5-f11963607d4e&overridelayout=true]
Regards,
Jonathan
Follow us on Twitter u2013 http://twitter.com/SAPCRNetSup -
Problem opening an application deployed in WAS6.40 from the browser
Hello friends!
I developed an application using JBoss-4.0.2. I got the .ear file from there and deployed it in WAS6.40 using "Deploy Tool".I am new to all this. I followed the following steps:-
1. Opened the deploy tool and created a new project with .dlp extension.
2.In the Deployer tab did the following:-
1. Chose Deploy -> EAR -> Load EAR. The File Chooser Window appeared and from the file system, selected the EAR file I wanted to load.
3. The EAR file and all of its components appeared on the Deployer tab as a tree.
4. In the deployer tab clicked on "connect" symbol in the tool bar and entered the following details:-
username - admin
password - *****
host - localhost
port - 50004
5.In the deployer tab Selected the ear file node which is loaded.
6.In the right pane, chose context tab.
7.Set the context root for the war files and pressed modify button.
8.Then with a right click on the loaded ear node in the left pane,selected "deployment"-->"deploy ear" from the context menu.
9.I got a message "Deployed Successfully" and then a message "Start the application y/n".
11.I Chose yes.
12.It gave the message "Application started successfuly". But no browser is opened.
13.So, i tried to open it from the browser using the URL "http://localhost:50000/<context-root>/"
But it is giving the following error:-
404 resource Not Found
The requested resource c:/usr/......./...jsp not found.
I verified the directory where the files are being deployed in the WAS (i.e in C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\)
The file is present.
What is the problem with my procedure?
Why am I unable to view the application in the browser?
Please tell me if there is any thing else to do.
Also suggest me if there is any other tool in Netweaver that fulfills my requirement apart from "Deploy Tool".
Any kind of help in this regard would be great.Please reply me soon.
Thank You,
Jyothsna.The JNDI call is different when you call an EJB from inside the J2EE.
ctx = new InitialContext();
ref = ctx.lookup("java:comp/env/<JNDI-Name>");
Regards
Stefan -
i recently got iphone 4 , yesterday i was trying to install an application from the itune store it say that i need to authorize it ( i already have an account and bought some apps ) and there was a CLICK HERE BUTTON , when i press on it it take me a to a page that require some kind of activation code or smthn like that ,
how can i authorize the device ?
and btw i bought it from UAE store
IOS 4.3.2You should only make purchases for all your devices using a single Apple ID. There is no need, and indeed a good reason not to, set up a new Apple ID with each new device purchase. While items purchased under different IDs can be played on a single device, you cannot merge Apple IDs and it makes it cumbersome.
Apple IDs do not expire but may become dormant and require reactivation if they are not actively used.
You should make note of your Apple ID and passwords and keep a record of it. Like a bank account it contains access to items with value. Update your Apple ID email address as they change.
I see you were guided to this forum by a help page on recovering your password. If that is not sufficient try the links below. Apple will need to verify you are indeed to owner of the accounts to which you are trying to gain access.
http://www.apple.com/support/appleid/contact/
Contact Apple for help with Apple ID account security - http://support.apple.com/en-us/HT5699 "This article provides country-specific Apple Support contact information for customers seeking help with their Apple ID password or other security-related issues."
Frequently asked questions about Apple ID - http://support.apple.com/kb/HE37
Maybe you are looking for
-
I had my iphone stolen in brazil and did not set up an icloud account. can i still find my phone?
-
Unlocking Documents in the Finder?
Some locked documents are not permitting us to unlock them. In the Info box for these docs, the "Locked" checkbox is checked, yet can't be unchecked as the area is grayed out and inaccessible. Suggestions? Many thanks in advance.
-
So in trying set up msmtp, I've run into a hiccup. It won't send mail and gives me this lovely message... msmtp: the server does not support authentication That seems simple enough except: >msmtp -S -a ********* SMTP server at **************, port 5
-
ARD 3 and Faronics Deep Freeze questions
Hello everyone I am interning at an IT department of a branch campus of a large university. Among other new exciting things I was recently given the responsibility to administer the 5 campus macs that are connected to the network as actual works mach
-
Hi-Does anyone know how to convert wbz webshots photos to jpg or something iPhoto can view? Thanks