How to force an AIR app to close?

My AIR application is one in a suite of mixed language applications under a common non-AIR front end.  When the parent application exits, all child sub-applications (including the AIR app) should close as well.  Any suggestions how I might communicate the close to the AIR app?

I believe that the main app contains an array of all children spawned during it's running time. When the "close" event for the main app fires, simply loop over that array and issue close commands for each child app/window.

Similar Messages

  • How to execute adobe air app & pass argument from Flex ?

    Helo everyone,
    May i ask a question, How to execute adobe air app & pass argument from Flex ?
    Thanks in advanced.
    Jacky Ho.

    Hello Jacky,
    You can find an example here
    http://spreadingfunkyness.com/passing-parameters-to-adobe-air-at-startup/

  • How to force quit an app in IOS 7.0.4 on iPad 3 ?

    I have searched on this topic, and see repeated references to the double click HOME button, then hold the particular app card, and swipe "up and away".
    This does NOT work on my device. 
    I can double-click the HOME button, and see the app switcher row at the bottom, showing the running (or suspended) apps.  Holding a given card turns it gray, but then nothing else happens.  If I move as to swipe, the card simply un-grays -- there is no movement or any other action.  It will allow me to swipe left and right, but not up.
    I have no other issues with the iPad and this release, that I know of.
    Thank you.

    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
     Cheers, Tom

  • How to get Adobe Air-apps to run *properly*? (Voddler ecpecially)

    First: I am running AMD64, and have installed the bin32-adob-air from AUR.
    The problem is, this does not work as it should. Air apps are never "installed" like they would be in Windows, or Ubuntu with the adobe-air from adobe installed. This causes problems with remembering configs and storing data between instances. Wimp, t.ex. will never remember my password, now matter how many times I check the remember password-box. And When running VOddler it just won't find the config file.
    I am trying to run Voddler in linux now, following this. But it won't work.
    I just get an "error reading config file" message when starting it using the adobe-air command (ie. the script from the package. Thinking the problem might be caused by the script running air apps from a temp dir, i aslo tried to run
    [gert@blad opt]$ /opt/adobe-air-sdk/bin/adl -nodebug /opt/airapps/VoddlerPlayer/META-INF/AIR/application.xml /opt/airapps/VoddlerPlayer
    after unpacking the Voddler Files there, but no luck.
    I see that there are a newer version of Voddler out now, and I will try that, but I'd appreciate any help with this spesific issue.
    Also, I would like to know if there is any way to get the "full Air experience" where you jut click-and go, and can install Air-apps the simple, proper way "everybody else" does it. Cause Air right now is a major hassle. Is there any chance of getting the Adobe-Air installer from Adoe work on Arch, or at least get a similar result? Integrated in the system, detected in the browser on  webpages etc.
    Last edited by naguz (2010-05-15 17:01:25)

    Tried again with the command taken from firefox appended to the script (instead of §1 §2 etc.) and got:
    (adl:17512): Gtk-WARNING **: Kunne ikke finne temamotor i module_path: «murrine».
    (adl:17512): Gtk-WARNING **: Kunne ikke finne temamotor i module_path: «murrine».
    Gtk-Message: Failed to load module "gnomesegvhandler": libgnomesegvhandler.so: cannot open shared object file: Ingen slik fil eller filkatalog
    Error #2032
    http://api.voddler.com/vnet/index/login-token
    Parameter: version:2
    Parameter: token:3c034c484e3ed6217ec0b4b6a6cd01c9
    Response received
    http://api.voddler.com/vnet/index/pre-movie-request
    Parameter: movie:2721821284152452737
    Parameter: session:952b4840d0a91e896c210622ee83333a_0c965a262382ad33a9479ebfaddf9a3d
    Parameter: crid:2721821284152752803
    Parameter: version:2
    Response received
    PreMovieResult: [object Object]
    movieID: 2721821284152452737
    MOVIEREQUEST: false movieModel.resumeTime: 0
    http://api.voddler.com/vnet/index/movie-request
    Parameter: movie:2721821284152452737
    Parameter: session:952b4840d0a91e896c210622ee83333a_0c965a262382ad33a9479ebfaddf9a3d
    Parameter: version:2
    Parameter: crid:2721821284152752803
    Parameter: resume:0
    Response received
    Adding to playlist url: 0p000001000_e000335_n0017_s0318_he3052b084510fe31419083eb165aa4bc_00000000000000000000000000000000_d59845ff23b2b6f22d3f3ee9020ab34af_t02
    Logg error
    (Object)#0
    clientCode = 30
    clientVersion = "3.10.1680"
    ctxId = ""
    errorCode = 1000
    extra = "Token login result triggered"
    os = "Linux"
    userId = "'2721821230480292729'"
    vnetVersion = "5522"
    DRM check...
    ReferenceError: Error #1069
    movieMetaDataReceived: 2004
    NetStream.Play.Reset
    NetStream.Play.Start
    Voddler.Open.Done
    Main movie metaData received
    DRM Fatal Error!
    Logg error
    (Object)#0
    clientCode = 30
    clientVersion = "3.10.1680"
    ctxId = ""
    errorCode = 7744
    extra = "General Error: 7744"
    os = "Linux"
    userId = "'2721821230480292729'"
    vnetVersion = "5522"
    ReferenceError: Error #1069
    It errors out after the Voddler window has been "Rerwinding the tape"  for about 10 secs.
    EDIT: I moved my voddler folder to /opt/airapps so I could use your file without any edits to rule out typos.
    Now, the voddler player starts from firefox in wine. But I immediately also get the "Oops, we noticed you didn't watch the whole movie"-window pops out at the same time, and i get a similar error as above.
    DRM check...
    ReferenceError: Error #1069
    movieMetaDataReceived: 2008
    NetStream.Play.Reset
    NetStream.Play.Start
    Voddler.Open.Done
    Main movie metaData received
    DRM Fatal Error!
    Logg error
    (Object)#0
    clientCode = 30
    clientVersion = "3.10.1680"
    ctxId = ""
    errorCode = 7744
    extra = "General Error: 7744"
    os = "Linux"
    userId = "'2721821230480292729'"
    vnetVersion = "5522"
    ReferenceError: Error #1069
    I guess voddler cancels the DRM "lease" as soon as the error box pos up, giving me this question. Seems Firefox doesn't communicate properly with the air-app. Or something else I don't get. complete output from firefox run: pastebin
    Last edited by naguz (2011-01-11 22:32:16)

  • How to compile an .air app from the ADT command line?

    Hi,
    I would like to compile an .air app from the ADT command line.
    Does anybody have an example?
    I don't know how to add the AIR SDK path and a folder to it.
    Is there a generator for the command line availabble?
    Thanks

    Correction: it seems that Applescripts and some similar scripts can be called from the command line using "osascript scriptname". I don't speak automator but you might like to try it. osascript seems to come with severe limitations though, for instance it doesn't allow user interaction such as dialogue boxes.

  • How to compile the AIR app to android emulator

    How to compile the AIR application to run on emulator ?
    May be use the 'adb' command line ?

    -target The type of package to create. The supported package types are:
    air — an AIR package. “air” is the default value and the -target flag does not need to be specified when creating AIR or AIRI files.
    airn — a native application package for devices in the extended television profile.
    native — a native desktop installer. The type of file produced is the native installation format of the operating system on which the command is run:
    EXE — Windows
    DMG — Mac
    DEB — Ubuntu Linux
    RPM — Fedora or OpenSuse Linux
    apk — an Android package. A package produced with this target can only be installed on an Android device, not an emulator.
    apk-debug — an Android package with extra debugging information. (The SWF files in the application must also be compiled with debugging support.)
    apk-emulator — an Android package for use on an emulator without debugging support. (Use the apk-debug target to permit debugging on both emulators and devices.)
    Use the value as per your need. The you can use adb to push the packaged apk to your emulator.

  • How to run Adobe Air App as Windows Service

    I am working on Adobe Air application. Everything about coding and configuration have been good so far but I have some major road blocks down the road:
    1. Schedule my application to run at certain time.
    2. Run the application in the System Tray like a Daemon app
    Does Adobe support for configuring the application to run in System Tray like a Gmail notifier app now? If it does, is it possible for me to have it configure for both Windows and Mac systems?
    If anyone has any pointers or tips, please feel free to let me know. Thanks in advance.

    Last night I got some time to try out your example from "Working with the dock and the system tray"
    It is really impressive to see how easy you can animate the icon on the taskbar, but it doesn't particularly achieve my goal to have a cross-platform taskbar app running.
    I tried to work with Java yesterday and got their Taskbar module working on both platforms. It solves the basic issue. But then I realize Java is missing the Webkits Adobe Air is offering. So I need two Apps in order to achieve the goal to re-use my web app on the desktop. Now I am considering to learn more about the extend feature you mentioned to let the Java application works like a remote control for the Air application's instances.
    So here are some of my current concerns: is it possible to be able to have input from java app into air application's elements? Does Adobe's intergrated runtime support incorporating Java as part of the app like it does with SWF and javascript? Or is there any bridge I can use to have the two applications communicate with one another?

  • How to completely uninstall air app(clear up user files under app directory)?

    In the adobe air 1.1 install/uninstall document, it says "Removing an AIR application removes all files in the application directory. However, it does not remove files that the application may have written to outside of the application directory. "
    But it's not true. I found you cannot completely uninstall the app if there is any user files under app directory. If the user re-install the app, it will reminder the user "some error has occurred ...because an application with that name already exists at the selected installation location.... ".
    How to get rid of this problem if the user didn't clear up the folder manually before re-install?  If it's a limitation of adobe air, anyone could give me any evidence from official documents? Cause I have to persuade the user to accept it    Thank you.

    Psythik wrote:After returning my 6GB Zen Micro to the store (due to the fact that I filled it up quicked than I would've liked), I decided to go with the Zen Sleek player instead. Problem is, my computer still has the Zen Micro's drivers installed and apparantly it's conflicting with my Sleek because my computer won't recgonize it as a Zen Sleek even after installing the drivers (it just recgonizes it as a generic mp3 player). I can still transfer files to it as a would with a generic mp3 device in My Computer. Problem is, ID3 tags aren't properly sent this way (which is annoying when I want an album organized by track number).
    You shouldn't need to uninstall the Micro, it won't conflict. If tags aren't being sent properly then there might be some issue with the tags being read from the files. Check with a dedicated tagging program, and rewrite the tags perhaps on some test files.
    I'm assuming it's a Sleek with v2.xx firmware?

  • How to set an AIR app on Android to handle filetype

    I've been trying to make my app as default handler of a file type on Android. I have the as3 code to open the file (via InvokeEvent.INVOKE) but I can't seem to be able to register the app as a handler.
    I added this code in the app XML:
      <android>
        <manifestAdditions>
          <![CDATA[
            <manifest android:installLocation="auto">
              <supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true" />
              <uses-permission android:name="android.permission.INTERNET"/>
              <uses-permission android:name="android.permission.WAKE_LOCK"/>
              <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
              <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
            </manifest>
            <intent-filter>
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data
                android:host=""
                android:mimeType="*/*"
                android:pathPattern=".*\\.pgn"
                android:scheme="file"
              ></data>
            </intent-filter>
        ]]>
        </manifestAdditions>
      </android>
    I also tried with
    <data android:mimeType="*/*" />
    <data android:pathPattern="*.*\\.pgn" />
    What am I doing wrong?

    You're going about it the wrong way. Native development allows you to find package names of installed apps and request they start using the Intent system with startActivity (once you verify the app exists), see here:
    http://developer.android.com/training/basics/intents/sending.html
    However that's native. You'll either need to find an existing native extension or create one yourself.
    That aside facebook may supply you with the proper scheme to call to launch the app in which case it would probably prompt you to run facebook in the app or in a browser. More info on defining those schemes here with code:
    http://www.riaspace.com/2011/08/defining-custom-url-schemes-for-your-air-mobile-applicatio ns/

  • How to run an AIR app from Javascript in browser?

    Does anyone know how to do this?

    What if you have a singleton class containing the list of items that were clicked on. When an item is clicked, it is added to the list of clicked items. Inside the renderer, access that object and check to see if the item being rendered is in the list, if it is, set the style to look like a visited link, if not set it to look like something not visited.

  • TS3274 How can I force apps to close on iPad?

    Help

    I was only able to power off with this method, but ipad still kept the apps open.  I want to force a single app to close so that I do not have to use so many 5 finger swipes to get to the apps I want. Is there another way to accomplish this?

  • How do you force quit an app?

    I was doing a drawing on Sketchbook Pro Ink and it froze on the gallery page. Their support forum suggested (to another member) that the first thing to do was force quit the app. But that was a year ago and I don't think his directions apply to my most current iPa

    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • How do I uninstall an App in SnowLeopard ver: 10.6.8

    I downloaded and installed an App  Twice like a dummy! How do I uninstall one of these. I tried moving to trash but recv'd error saying " could not move to trash cause app was OPEN"! Dunno how to close? I just want it gone, huh! Also is there a utility cleaner that will make this easier next time? Is this advisable?
    Thanks,
    Phil A.

    You can force an open app to close by clicking on the Apple icon in your menu bar, then choosing "Force Quit".  Close the app there.
    I have found an app called AppCleaner from Freemacsoft (free) to be effective at cleaning out apps.  You can download it from here:
    AppCleaner - FreeMacSoft
    Here's a review from CNET of this app:
    http://download.cnet.com/AppCleaner/3000-2248_4-10867510.html
    (I have no financial interest in any of the products above.)

  • My ipad is stuck on my Qvc app . How can i unfreeze this app?

    My ipad is frozen on an app how do i get it to open up?

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
     Cheers, Tom

  • Update Air app

    Hi everyone! I work in Flash Builder...
    Can't find how to update my air app: i have air app v.1 and i want to update it to v.2
    This my test examle:
    <?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/halo"
                                                         applicationComplete="init()">
                 <fx:Declarations>
                                  <!-- Разместить невизуальные элементы (например, службы или объекты значений) -->
                   </fx:Declarations>
                 <fx:Script>
                             <![CDATA[
                 import air.update.ApplicationUpdaterUI;
                                            import air.update.events.UpdateEvent;
                                            private var updater:ApplicationUpdaterUI = new ApplicationUpdaterUI();
                                            private function init():void
                                                           updater.configurationFile = new File("app:/config/updaterConfig.xml");
                                                           updater.addEventListener(UpdateEvent.INITIALIZED, updaterInitialized);
                                                           updater.initialize();
                                            private function updaterInitialized(event:UpdateEvent):void
                                                           isFirstRun.text = event.target.isFirstRun;
                                                           previousVersion.text = event.target.previousVersion;
                                                           currentVersion.text = event.target.currentVersion;
                             ]]>
           </fx:Script>
                 <s:Group width="300" height="200" horizontalCenter="0" verticalCenter="0">
                             <s:layout>
                                            <s:BasicLayout/>
                             </s:layout>
                             <s:Label text="isFirstRun:"                      x="80"   y="45" />
                             <s:Label           id="isFirstRun"                x="180" y="45" />
                             <s:Label text="previousVersion:"            x="78"   y="75" />
                             <s:Label           id="previousVersion"     x="180" y="75" />
                             <s:Label text="currentVersion:"              x="78"   y="105" />
                             <s:Label           id="currentVersion"        x="180" y="105" />
                             <s:Button click="updater.checkNow();" label="Check for Update" x="88" y="135" />
              </s:Group>
    </s:WindowedApplication>
    I have "updaterConfig.xml":
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
              <url>http://mydomain.com/myairapp/update.xml</url>
              <delay>1</delay>
              <defaultUI>
                        <dialog name="checkForUpdate" visible="true" />
                        <dialog name="downloadUpdate" visible="true" />
                        <dialog name="downloadProgress" visible="true" />
                        <dialog name="instalUpdate" visible="true" />
              </defaultUI>
    </configuration>
    witch plase in my project: src\config\updaterConfig.xml
    in this srting "<url>http://mydomain.com/myairapp/update.xml</url>" i show way to find "update.xml" file on my server, then i'll show code of this file:
    <?xml version="1.0" encoding="utf-8" ?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
              <version>1.0.1</version>
              <url>http://mydomain.com/air/myapplicationV2.air</url>
              <description><![CDATA[Varios bug fixes ]]></description>
    </update>"src/config/updaterConfig.xml"
    in this srting " <url>http://mydomain.com/air/myapplicationV2.air</url>" i show way to find my app v.2 on my server...
    If I correctly understand im doing all quite true, but it's not working(((
    Somebody, please, show my how to uppdate air app!) It will be perfect if you email me to [email protected] working project, or contact with my on skype absolut545...
    And looking forward thaks to every one!) PS: sorry for my eng)))

    If you are installing via a bootstrap, sub installer, this should be doable.  Please take a look at our distribution agreement form, it's a simple process and once completed you'll get instructions that detail how to accomplish silent installs.
    Thanks,
    Chris

Maybe you are looking for

  • IPad freezes in the middle of a video playback

    This is a second time I post this problem. When I first got my iPad, it froze in the middle of a video play back consistently. I called tech support, all they can do was to ask me to reset the iPad. However, that did not fix the problem. I was sent t

  • Different kf's from same DT

    Hi guys,   i have one transformation from a DT to populate diff kfs from the same DT eg current month and last yr same month we hve used an end routine and a method to identify the DTP and populate the respective kfs after initiallitizing all the kfs

  • Regarding tables for Invoice

    Hi What are the tables for INVOICE. Regards Sandeep. Edited by: Sandeep Reddy on Feb 28, 2008 3:41 PM

  • Quark could copy and paste a para style

    Way back in Quark ±3 you could select some text, copy that para style and paste it to another paragraph. You could also select a load of paras then function click on another style and it would change the selection. Can ID do this? It was so useful! L

  • Want to crop tunes for iPhoto slide show

    I created a play list of 3 songs for wedding slide show, would like to crop out pauses and use just short snip of one, any way to do this? I cropped as directed for iTunes, but when I chose that playlist in iPhoto, the entire songs played. Any sugges