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?
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?
I have an application for mobile devices that I want to export as an exe or dmg.
I found online to use ADT. Problem is is that I get errors (different ones depending on if air SDK i use)
If i use air 3.0:
AIR file at [app path]/app.air could not be converted.
The error was ""
If I use air 3.1 or air 3.2 sdk
SDK is missing file [my path to air]\lib\nai\bin\naip.exe
I'm running
java -jar [path to air]\lib\adt.jar" -package -target native app.dmg app.air
I've also tried
java -jar [path to air]\lib\adt.jar" -package -target native app.exe app.air
Any ideas? Apparently there is an integrated Flash Builder 4.6 tool, but for some reason the option under export release doesn't exist for mobile projects - strange...
I'm writing a desktop client for a Django app running on an https domain.
I'm attempting to retrieve cookies set by the django site when I call the site using URLRequest as follows:
var urlVariables = new air.URLVariables();
urlVariables.foo = "bar"
var request = new air.URLRequest("https://www.example.com/api/foo/");
request.data = urlVariables;
request.method = air.URLRequestMethod.POST;
var loader = new air.URLLoader();
loader.addEventListener(air.HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpStatusHandler);
loader.addEventListener(air.Event.COMPLETE, completeHandler);
loader.addEventListener(air.IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(request);
However if I loop over the headers returned by the site like so...
function httpStatusHandler(event){
for(var i=0; i<event.responseHeaders.length; i++){
air.trace(event.responseHeaders[i].name);
}
}
...I discover that that the Set-Cookies header is conspicuously absent.
Is this a deliberate security restriction for calls to HTTPS sites? I'm completely baffled.
Any help appreciated.
Seems pretty straight forward, especially with instructions like the ones found here: http://pigsels.com/2012/04/air-app-store-publishing-guide/
Our FB 4.6 built Air 3.3 app exported as a captive runtime .app works as expected. However I wanted to code sign it to deal with the Mountain Lion GateKeeper issue. We generated our Apple Application and Installer certs, and those work as expected on XCode generated projects. However, when trying to codesign the AIR based OurApplication.app or the internal plug-in bundles (Contents/Frameworks/Adobe\ AIR.framework/Versions/1.0/Resources/AdobeCP15.plugin) all we get in return is this:
object file format unrecognized, invalid, or unsuitable
Any ideas? We do not intend to submit this to the Mac App Store, mainly because it does use the mx:HTML component and my understanding is that the WebKit plugin will mean a rejection from Apple. But simply getting the app signed so GateKeeper does not throw up on us is the primary goal.
What I'm doing in my application is, we need to open multiple AIR windows with different login credentials which connects to an online web application, but the authentications of different logins should sustain in those opened windows.
In my application I'm opening multliple <s:Window> with <mx:HTML> within it. The <s:Window> instances are created individually for each of the logins (so the HTML component inside it too). The <mx:HTML> window connects to a same web application path but with each different login credentials. Initially these seems works fine, the Window opens, connects to the application, get logged-in, shows different login vaalues in each s:Window. But what we've noticed that the last opened login only active with the server communicateion; the previously opened logins/windows not working anymore back with the server - they've seem lost their own login cookies.
This is almost like you can not open multiple login in a same browser's multiple tab at a time. But here we opening the different <s:Window>, <mx:HTML> instances, but the cookies seems passing through each of the html instances internally, so no individual HTML cookies instance.
Is there anyway that the mx:HTML component holds and preserve their own session cookies?
I've tried the following things, but no use..
var ur : URLRequest = new URLRequest( "https://applicationDomain.com/Application.html" );
ur.manageCookies = true|false;
ur.useCache = true|false;
htmlMe.htmlLoader.load( ur );
Any help would be great.
Thanks.
Hi,
In my iOS app Capabilities.languages[0] is returning only the language, not the country code.
Does Adobe Air provide any way to access to the country code in this case?
thanks!
hi all,
im trying to run adt –certificate -cn SelfSigned 1024-RSA sampleCert.pfx samplePass but it comes up with unexpected argument, i have jdk1.6.0_17 plus jre6
any help will be great
thanks
Hi All,
I am trying to create air file. I am getting this error.
Error Creating AIR File : NotAfter : Fri May 07 05:29:59 IST 2010
Can you help me.
Thanks in advance.
I have been developing an app for a few weeks for a jukebox front end and have been using air 1.5 (1.5.3.9120 to be exact) and though I might aswell start using air 2 so downloaded the air 2 RC sdk.
When I tested the app in air 2, I was not happy with the performance.
here is a link to a screen capture I did.
http://www.2pha.com/random_files/air15_vs_air20.avi
In the first half I am using air 1.5, in the second half it's 2.0.
All it really is atm is a list using a custom layout (that is not virtual)
As you can see in the vid, in 1.5 it performs ok, but in 2.0 the clicks on each item lag quite a bit.
Can anyone explaint this or is there something different in air 2.0 that I am missing?
I am successfully running the Application show in the following link
http://tv.adobe.com/watch/adc-presents/invoking-java-process-from-adobe-air-2-applications /
i.e Invoking Java Process from Air Application .
the application runs on Flash Builder 4
but when i create Native Installer and run the app after installation it is unable to invoke java process.
Hi All,
I developed an app and I am having the strangest problem where it works fine in windows, but not on the mac/linux platform. It's an image manipulation program where the user loads images into the AIR app from their local file system. Here's the workflow:
When I use the app in Windows, I can select an image from the file browser and it's added to the stage. When using mac/linux, I can select a file, but it is not added to the stage. Here is code dealing with selecting the image file and loading it onto the stage:
///// START CODE //////
var selectedImage:File = new File();//This holds the location of the file that will be selected using the file browser
controlPanel.select_but.addEventListener(MouseEvent.MOUSE_UP, selectImageFile); //Event listener to open file browser from button press
//This function opens the file browser
functionselectImageFile(e:MouseEvent):void {
var imgFilter:FileFilter = new FileFilter("Images", "*.png;*.jpg;*.bmp"); //Only show image files
selectedImage.browseForOpen("Open", [imgFilter]); //Open file browser
selectedImage.addEventListener(Event.SELECT, fileSelected); //When user selects file, run fileSelected function
}
//This function passes the location of the selected file to the loadimage function
function fileSelected(event:Event):void {
loadImage(selectedImage.nativePath);
}
var imageLoader:Loader; //Create loader object to hold selected image. We are using loader because we need to get properties from the loaded clip that are only accessible on the clip is loaded. loader class allows us to assign event.COMPLETE listener
//Load selected image into loader
function loadImage(url:String):void {
imageLoader = new Loader();//Create new loader
imageLoader.load(new URLRequest(url));//load the selected image
var imageClip:MovieClip = new MovieClip();//Create movie clip to hold the loader
imageClip.addChildAt(imageLoader,0); //Place loader into movie clip. Dont add the movie clip to the stage until the image is loaded
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);//add event listener that tells us when image is loaded
}
//Once image is loaded, add parent clip (imageClip) to stage
functionimageLoaded(e:Event):void {
clipHolder.addChild(e.target.content.parent.parent as MovieClip);
//The reason i am using the event.complete listener is because I need to access properties from the loaded clip that can't be accessed until it's loaded.
}
///// END CODE ////
...As I mentioned earlier, this works perfectly in windows, but not mac/linux. Can anyone offer any insight as to why this may be the case? One theory that I have is that the imageClip is getting cleaned up before it is getting added to the stage via the imageLoaded function. Thanks very much for taking a look!
Hello,
Does any one have any idea about creating/extracting password protected zip files in AIR. I am aware of FZip but it does not has the feature to password protect.
Any help would be appreciated.
Thank you
VinSat
I have a flash file which i've embedded FLV videos into. They link to the external video file.
When I export out the AIR application, and install it, it doesn't bring the video files with. I have to manually copy the videos into the install directory to get them to work.
How can I make it so the videos get installed with the AIR application?
I *could* host the videos on a web server, and link to them, but the client doesn't really like this idea. There must be a way to keep them local - right?
Thanks in advance.
Hi,
I've got a flex app which I'm porting to air, the two apps are identical except for the root tag being WindowedApplication rather than Application.
The problem is that cookie/session based logins are working for the flex app in the browser but not for the air app. Reading the docs says that cookies are available for air and the URLRequest manageCookies is true by default.
I'm not doing anything special anywhere, it's just plain old sessions/cookies from a nornal Rails app.
So does anyone have any idea why might not be working in Air?
Cheers,
Chris
The release notes for Air 3.3 suggest that you can package for the Mac (desktop) app store but I cant find any documentation on how this is achieved? Has any one done this?
I found a bug in the current version of the firmware (version 1024) for the Samsung TV UN55D8000. I just wanted to let people be aware of the issue.
The issue is that the app flashes black when a video attempts to loop.
I have the stageVideo seek to the start to its 0 point when the netstream reports that the video has reached its end.
When the video loops, the entire app flashes to a black screen for a split second.
This is NOT a problem on the Broadcom developer box or on TiVo devices - just the above mentioned Samsung TV. Therefore, I assume this is a Samsung bug.