Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all 21156 articles
Browse latest View live

create a live wallpaper for android with flash

$
0
0

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?


Export Mobile App to Air Exe/Dmg

$
0
0

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...

Whats happening to my set-cookie header?

$
0
0

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.

Code signing captive runtime OS X (Non MAS)

$
0
0

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.

AIR HTML with multiple cookies?

$
0
0

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.

Get the country in iOS

$
0
0

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!

unexpected argument while running adt –certificate -cn SelfSigned 1024-RSA sampleCert.pfx samplePass

$
0
0

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

Error Creating AIR File : NotAfter : Fri May 07 05:29:59 IST 2010

$
0
0

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.


Air 1.5 vs 2.0 performance

$
0
0

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?

Invoking Java Process

AIR app works in windows, not mac/linux

$
0
0

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:

  • user clicks button that opens file browser
  • user selects an image file
  • the selected image is loaded onto the stage into a movie clip
  • ..other magical things happen to the image

 

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!

Creating/Extracting password protected zip files in AIR

$
0
0

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

Embed Video (flv) in AIR application

$
0
0

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.

How to check the AIR runtime version?

$
0
0
How can I check the AIR runtime version that is currently installed on the machine?
Is there a properties file stored in the "Documents and Settings" Folder or something like that?

Thanks in advance!
Maik

Understanding the AIR Sandbox?

$
0
0
Well I am learning the hard way that you can't just take any old Flash sample and make it work in AIR.

I have had mixed results to date, with one issues being sample Flash files that use AS2 components not working.

But now this...

I am trying out this samplehttp://www.flash-db.com/Tutorials/loadingAS3/loadingData.php?page=4

And got the PHP/MySQL sample to work as expected in Flash, converted to Flash AIR, works as well, debug as ADL, works well also, however when making a final AIR app, it does not fully work, and the images are missing.

I am not expecting anyone to help me decode, fix the sample code, what I need to know is what really are the underlying difference between Flash SWF, ADL, and a AIR app, to make this happen, something I think may be answered by understanding the AIR sandbox if that is the correct term.

This is in Flash CS3/AS3 and AIR 1.0 update and player.

TIA.

Cookies working in Flex but not in Air

$
0
0

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

air 3.3 and Mac app store?

$
0
0

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?

Retrieve Cookies from a HTTP response

$
0
0
I am trying to login to an HTTP application, using the following Air AJAX/HTML code, and then get the cookies from response for further http calls. I do not see the cookies being printed in the trace call.

How do I retrieve the cookies from a HTTP response that can I use for future HTTP calls?


var loader = new air.URLLoader();
configureListeners(loader);
var request = new air.URLRequest("http://localhost:8080/TestLoginApp/");
request.method = air.URLRequestMethod.POST;
var params = 'context=default&username=abc&password=xyz&button=+SIGN-ON+';
request.data = params;

function configureListeners(dispatcher) {
dispatcher.addEventListener(air.HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatusHandler);
}

function httpResponseStatusHandler(event) {
air.trace("httpResponseStatusHandler: " + event);
}

Thanks.
Geeth

Best way to download large files direct to disk?

$
0
0
Hi,
I am writing a process that will download a file (in the background, no GUI interaction) and will save it onto the users drive. Once it is saved to disk they will be notified.

I don't want to use FileReference as that prompts the user, I also don't want to just use UrlStream direct into a ByteArray because the files can be quite big and I don't want to hog memory.

What would you recommend I do? Is the only option to simply do an urlstream.readBytes() into a smaller temporary ByteArray and then immediately write those bytes to disk, rather than appending to an overall larger byte array that only gets written once the entire file is saved?

Samsung Video Flashing Bug

$
0
0

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.

Viewing all 21156 articles
Browse latest View live




Latest Images