Convert Air Desktop Application to Android apk Please help!

I developed an Air Desktop Application by using Flash Builder 4, it's a pure ActionScript 3 application. I used a few PNG image files and mp3 audio files in the application. After I build it, I got the swf file, xml file and all the image mp3 files in the bin-debug folder. If I run the swf file with all other files (png and mp3 files) in the bin-debug folder, it works great. If I run the swf standalone, the application will miss the images and sounds.
Now I'm converting the swf to apk, and run it on android device, it will NOT show the images or Doesn't play the sounds. I was wondering if there is a way to merge the png and mp3 files into the swf when I build/compile it? Or is there some other way to convert to apk which includes all the image and audio files? Please help.

Please see adt -package command here
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffb.html
in this example icons folder is packaged along with swf and app xml.
What you can do is that specify each of the mp3 and image files one by one separated by space at the place where icons is used in examples.
In this case you will find all mp3 and image files in same directory as your swf when you run on android.
Make sure you use app:// urls for accessing those files

Similar Messages

  • How to load a FLEX application in an AIR desktop application.

    I am creating an AIR desktop application (mx:WindowedApplication). I need to load another remote FLEX application (mx:Application) inside my AIR application.Is it possible ? If then ,please mention how to achieve this ..

    If it is bundled with the air app, then it's as easy as using the SWFLoader class.
    If it's loading from a remote host, you need to load it into your app as a ByteArray first.
    More info here: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/
    The example is for Modules, but the principal is the same I believe.

  • Re: Flash Air desktop application

    Hi there,
    I have developed a flash air desktop application with the help of a flash programmer.
    Soon I will put it online for sale. How could I avoid illegal copy from spreading around?
    I need a lot of info regading this.
    Please help me with this issue.
    Many thanks

    A possible solution is described here:
         http://nsdevaraj.wordpress.com/2009/01/20/licensing-flex-air-application/
    HTH.

  • Flash air desktop application

    Hello there,
    We developed an application.
    The window of our application cannot be maximize after it is install on our desktop.
    How could we get this fonctionnality?
    Please help.
    Many thanks

    Are you saying that it is possible to get this fonctionality (maximise
    without stretching) when using flash air desktop application?
    Yes, you can maximize a window without distorting the contents. When using Flash, the stage scale mode defaults to one of the scaling modes. For your app it sounds like you should set the scale mode to the "noScale" option.
    If yes, Do you recommend the utilization of aire for the distribution of our
    application?
    I don't know enough about your application to make any kind of recommendation, and anyway my opinion might be biased since I am an Adobe employee.
    Also could you recommend us a way for limiting the illegal distribution?
    I don't think there is a fool proof way to do it (in general DRM is a race between the publishers and the hackers). Adobe doean't provide any tools for this. Presumably, there are 3rd party tools for application DRM that you could use (but that's outside my area of expertise).
    For a homegrown approach to the problem, you could require that users of your application create a user account on your web site and download a license file in order to run the application.  This isn't perfect, because someone could hack your application to remove the check for the license, but it would prevent casual copying.

  • Change Encore Project into a adobe air desktop application with password

    Good afternoon,
    I am trying to find a a way that i can change or inport a Encore project into a adobe air desktop application so that a can password protect it. I have a training simulator built in Encore that has a large number of menus and videos that i would like to tern into a tesk top application that i can password protect. Encore out puts this as a swf file. Is there any way to do this? I have bin looking around an the web and can't seem to find any information on this kind of problem. Any help would be greatly appreciated.
    Many thanks,
    Justin

    Hi Justin,
    ok, assuming that your external SWF tries to access some hosting application context (methods/properties) you could try:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                applicationComplete="applicationCompleteHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.events.FlexEvent;
                   private var loader:URLLoader = null;
                   protected function applicationCompleteHandler(event:FlexEvent):void
                        loader = new URLLoader();
                        loader.dataFormat = URLLoaderDataFormat.BINARY;
                        var url:String = "MyApplication.swf";
                        loader.load(new URLRequest(url));
                        loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.addEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);                   
                   protected function loaderCompleteHandler(event:Event):void
                        // allow cross-scripting in case loaded content tries to access
                        // that context properties or methods
                        var context:LoaderContext = new LoaderContext();
                        context.allowCodeImport = true;
                        swfLoader.loaderContext = context;
                        swfLoader.load(loader.data);
                        cleanup();
                   protected function loaderErrorHandler(errorEvent:IOErrorEvent):void
                        mx.controls.Alert.show(errorEvent.text, "ERROR");
                        cleanup();
                   private function cleanup():void
                        loader.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.removeEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);
                        loader = null;
              ]]>
         </fx:Script>
         <!-- ui -->
         <s:SWFLoader width="100%" height="100%" id="swfLoader"/>
         <!-- -->
    </s:WindowedApplication>
    See that doc for some details "allowCodeImport":
    http://www.adobe.com/devnet/flashplayer/articles/fplayer10_1_air2_security_changes.html
    note: I'm not sure if that would 100% work. I don't know what Encore authored .swf really do, for that you could ask on Encore forum:
    http://forums.adobe.com/community/encore/encore_general
    regards,
    Peter

  • Air desktop application: how to make a menu item bold?

    Hi, I'm using Flash CS6 to develop an AIR desktop application for OSX. I've created my menu using NativeMenu and such, but I can't find a way to make the first menu item bold, like a true OSX app. So far the little I've found on this always referred to Flex, not Flash. Any hints?
    Thank you.

    Thank you, kglad.
    I think I forgot to mention I'm building an Application Menu. The NativeMenu contains NativeMenuItems and there is no format property or method that I can see. Also, the name the menu item displays is its label property, which you can set, but it's a string, and I believe the htmlText applies to textfields, right?

  • How to allow multiple instances of air desktop application

    hi all
    Adobe air desktop application only allow single instance of
    application. How to allow multiple instances like in other desktop
    applications?.
    thanks

    Thanks a lot morgair, i will check with exe4j tool.
    Actually the problem is, thread is not waiting for second request.
    thatswhat i thought it may because of thread.
    Thanks & Regards
    Sudha

  • My software is STUCK on "Retrieving current session status" What is this and how do I fix it? i am not able to convert any files at all!! Please help!

    My software is STUCK on "Retrieving current session status" What is this and how do I fix it? i am not able to convert any files at all!! Please help!

    Hi JulietaQ,
    In order to help you better.
    Please let me know which application or Service of Adobe you are using. If this is subscription i would request you to log-out and log-in back and let me know if that helps.
    ~Ajlan Huda

  • I updated to Mountain Lion and now my Parallels application no longer works; please help! What to do???

    I updated to Mountain Lion and now my Parallels application no longer works; please help! What to do???

    Make sure you have the latest version of parrallels. Think older versions are not compatible.

  • HT2604 I can't instal software from applications instal DVD! please help me!

    I can't instal software from applications instal DVD! please help me!

    hi, i face the same problem and appreciate your help. I delted iphone and the library. I reinstalled iphoto from the original application install DVD and when trying to open it I get a failure message. My mac version is 10.8.5 and the install disc is 10.6.6. I got a big text from the error message what would you need to help me?
    Thanks so much

  • I am looking for a good development application for IOS. Please help me.Thanks.

    I am looking for a good development application for IOS. Please help me.Thanks.

    Xcode is required to submit your app to the App Store. So at some point (even if it is just to submit) you will need to use it.

  • Premere and After Effects are missing from Cloud Adobe Application Manager... please help ASAP

    Premere and After Effects are missing from Cloud Adobe Application Manager... please help ASAP

    Short and to the point: If they don't show up, your system doesn't support them. Refer to the Tech Specs on teh product pages and make up your mind...
    Mylenium

  • My apple ID was hacked and a game by GodGame Inc was bought and installed. When I try to report a problem about this transaction, the link automatically sends me to the apple store support. The application is bugged. Please help.

    My apple ID was hacked and a game by GodGame Inc was bought and installed. When I try to report a problem about this transaction, the link automatically sends me to the apple store support. The application is bugged. Please help.

    thanks for your response roaminggnome. I changed my password immediately after it happened and I have contacted i tunes to let them know of this dillemma.
    The I-tunes credit was a promotional thing by Apple to buy their laptop. So I didn't pay for the i-tunes credit in the first place. Do you think my bank will be able to reinburse Itunes credit then? I will ask support when they get back to me.

  • Connecting between two Adobe air mobile applications (On Android)

    Hi There,
    Does an Adobe AIR application can connect and pass parameters somehow (Directly or by http) with another android application?
    Can Adobe AIR mobile application open a listening socket?

    Um, I'm pretty sure this is wrong. You cannot use SocketServer on a mobile app platform for some stupid reason.
    From the doc
    "AIR profile support: This feature is supported on all desktop operating systems, but is not supported on mobile devices or AIR for TV devices"

  • AIR Desktop Application for Linux running HTML5 and JS

    Hello all,
    Can I build an application with Adobe AIR coding in JS + HTML5? Once it was indeed possible and there are even tutorials on this technique:
    http://www.adobe.com/devnet/air/air_javascript.html
    If it's still possible with AIR 3.8, how can I build an existing website into a desktop application that will run in debian Linux? I'm struggling to find a resource that teaches how to actually build the application with AIR SDK. I've found how to build an application written in AS3 but not HTML + JS.
    Thanks

    Thank you, kglad.
    I think I forgot to mention I'm building an Application Menu. The NativeMenu contains NativeMenuItems and there is no format property or method that I can see. Also, the name the menu item displays is its label property, which you can set, but it's a string, and I believe the htmlText applies to textfields, right?

Maybe you are looking for

  • How to create a new PDF consisting only of the cropped area?

    Hi, Is there a way to crop a PDF via javascript in such a way that the new MediaBox contains only the cropped material, where the lower left corner is also located at 0,0? setPageBoxes("Media",...) to match the CropBox doesn't seem to do it. What I n

  • Applet in a browser page  doesn't gain focus with JVM 1.6.x

    Hi, I have a problem to move TAB in a IE browser page with applet in a tag object using JVM 1.6.x with JVM 1.5_10 or above this is possible. You can move focus between elements page and enter and exit to applet object. Executing the same applet with

  • Palette for JPG export

    Hi! When I export BMPs with the "Layers to files" command, I can control the number of colors by creating a palette. Can I do the same thing when exporting JPGs "Layers to files"? I have not found a way to do this in Fireworks and the work-around con

  • Timed out Problems to using the Solar_project_admin transaction

    Hello everyone! I'm trying to create a project in the Solution Manager using SOLAR_PROJECT_ADMIN transaction but we receive the timed out error message and the process is stopped. Could help me ?

  • Resolution help with PB 15" 1.67 and Apple 20"

    Hi, I have a PB 1.67 and an Apple 20" display that I am trying to get to work right. I am setting it up for mirroring what's on the PB and I haven't been able to get the 20" to display the full 20" at a resolution that looks anything but lousy. If it