Launching an AIR app from another (when offline)?

I have a pair of AIR applications that are meant to work
together as part of an application suite. One feature is that a
user should be able to click a button in APP_1 and launch APP_2 (if
installed). To do this I created a "LaunchButton.swf" that loads
"air.swf". This works GREAT when the user is online and "air.swf"
is able to be loaded from "
http://airdownload.adobe.com/air/browserapi/air.swf".
I tried to copy "air.swf" locally and use that instance but I am
guessing that it doesn't work due to security restrictions.
If there are any AIR engineers reading this (Oliver?) please
let me know if there is a solution to "Launching an AIR app from
another (when offline)?"
Thanks!

I think theoretically it shouldn't work, and doesn't by the
response you give. Remember a functional work around isn't always a
fix. What you've essentially done is loaded the air.swf into a
sandbox bridge, bridging it between a web sandbox and an
application sandbox, therefore you're able to call its methods
without security errors. However, if the air.swf loads in another
swf, maybe a helper swf, you won't be able to access any methods in
that swf, neither will the air.swf. To my understanding, it's not
grandfathered into the sandbox bridge, but retains its web sandbox.
Before going crazy about the bad news I may have just given,
wait until Ted returns to give you a response. I could be way off
par here :) Good luck!

Similar Messages

  • Launch one CS app from another

    Hi all,
    Newbie alert - sorry!
    I am currently stuck on something that seems simple, but I cannot get it to work - it's about coordinating between multiple CS apps.
    I want to cause one Creative Suite app (e.g. Photoshop) open a certain document (say a JPEG file) while running a CS Extension running in another Creative Suite app (e.g. Illustrator).
    I first naively assumed I could just use the app property of the Photoshop class (i.e. 'com.adobe.csawlib.photoshop.Photoshop.app') from an extension hosted by Illustrator, but I am not having much luck. One possible cause is that Photoshop is not necessarily running. When I try to refer to Photoshop.app while 'inside' an Illustrator extension, I do get an object back, but it's full of nulls and empty member variables - it's not properly instantiated, and as soon as I try to refer to something 'in' it (e.g. Photoshop.app.open(...)), a null exception is being thrown.
    I've tried pre-launching Photoshop manually, but that does not seem to help, and any which way, I want to automatically launch Photoshop if it has not been launched yet.
    The next thing I tried was to use an embedded ExtendScript - when one is using ExtendScript, it's fairly simple to talk to other apps in the Creative Suite. There are objects called 'photoshop', 'illustrator' and so on, and there is BridgeTalk.
    But when I call my ExtendScript from within ActionScript using the HostObject, it looks like I am missing all of the normal 'infrastructure' I've grown to expect when running ExtendScript. I suspect it's because I am in a separate engine that does not have the stuff I want to access.
    Then I tried to force things - I noticed the sample code that runs an ExtendScript in ActionScript has a phrase:
    var myBridgeScript : HostObject = HostObject.getRoot(HostObject.extensions[0]);
    and HostObject.extensions[0] is something like 'com.adobe.illustrator'. So I tried other strings here (e.g. running inside Illustrator, I tried 'com.adobe.photoshop') - no luck. Got a null in myBridgeScript.
    I looked at the CSXSEvents - but as far as I understand those would only help me when Photoshop is already running - Bob Stucky's cookbook article
    http://cookbooks.adobe.com/post_Inter_Application_Communication_with_the_Creative-18456.ht ml
    ends with: 'Possible extensions would be to launch Photoshop, if necessary, using Air's NativeProcess'. That sounds like bad news, and seems to indicate I'd have to go search for the Photoshop app path the hard way (keeping in mind that some people install their Creative Suite in odd places, so it's not always in '/Applications/Adobe Photoshop CSsomething' or 'C:\Program Files\Adobe\Adobe Photoshop CSsomething').
    Now, I can go do this the complicated way (calling down to the underlying operating system, try to find the correct Photoshop app (there might be more than one), and launch the document through the OS) - but I was really expecting there would be a simple magical trick to do it in a much more direct manner - it's clear the Creative Suite apps know about each other, so I was hoping to find a way to rely on their internal smarts to launch documents from one CS app into another CS app.
    Any ideas?

    Any ideas?
    Hi Kris!
    Yeah. Wait for Vulcan in CS Next... (sorry I couldn't resist...)
    I first naively assumed I could just use the app property of the Photoshop class (i.e. 'com.adobe.csawlib.photoshop.Photoshop.app') from an extension hosted by Illustrator, but I am not having much luck...
    I'd expect that. The CSAW libs are basically all smoke and mirrors. If you can't do it using ExtendScript, you can't do it in ActionScript. One app does not know another app's DOM...
    The way I'd handle it would probably be using Bridgetalk on the ExtendScript side of things with a (double) callback going back to the ActionScript side of things once the Bridgetalk returns its results to the ExtendScript layer.
    We should probably get together to solve this problem for the long-term...
    Harbs

  • Launch desktop AIR app from swf button

    I have a very simple task. I have an AIR app installed. All I want to be able to do is launch it from a swf button. I am building the swf button in Flash CS6. How do I do this? All it has to do is launch the app. No fancy stuff, no installs, no validation. Just launch the darn app. I can't seem to find a simple solution. Thanks!

    Not sure exactly why yet, but I finally found something that worked!!!! Hope this saves someone else hours of research:
    myCustomBtn.addEventListener(MouseEvent.MOUSE_DOWN, versionDetectCallback);
    var _air:Object;
    var _loader:Loader;
    var appID:String = "thenameofmyapp";
    var pubID:String = " "; 
    function loadAir() : void
    _loader = new Loader();
    var loaderContext:LoaderContext = new LoaderContext();
    loaderContext.applicationDomain = ApplicationDomain.currentDomain;
    _loader.contentLoaderInfo.addEventListener(Event.INIT,onInit);
    _loader.load(new   URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"),loaderContext);
    function onInit(event:Event) : void
    _air = event.target.content;
            //the pubID argument resolves to and empty string ""  
            _air.getApplicationVersion(appID, pubID, versionDetectCallback);
    function versionDetectCallback(event:MouseEvent) : void
           _air.launchApplication(appID,pubID);
    loadAir();

  • Opening an AIR App from another AIR App

    Hello Experts,
    I want to make an AIR application from which I can execute
    other AIR Application. Does any one have any idea how it can be
    done?

    It cannot be done. If you browse the archive you will find
    plenty of relevant "discussions".

  • Any solution for Launching Air Apps from Sandboxed Chrome and Safari Browsers?

    Before we go and build our own plug-in (Ugh!)...
    As of early this year, we could no longer launch our Air application from Chrome. Now Safari (with Mavericks) has Sandboxed Flash with their browser and it will no-longer launch our application.
    Does anyone have any helpful advice (beyond building our own plug-in)?
    Thanks,
       Leo

    For the Chrome issue, I added instructions on how to manually enable an exception so that the plugin could run. The easier way to get it working is to have them install an Air app from the browser using a Flash badge. This didn't work for us since our app needs a native installer. Another option is to have our user install another Air app from our site. The exception is created for the site and the Air plugin so even though it would be a different app, once they allowed the plugin on our site, we could launch the natively installed app after that.
    I just discovered the Safari sandbox issue on Mavericks. I haven't tried either of these approaches on Safari yet. Is it the AdobeAAMDetect plugin in Safari settings that needs to be allowed?
    http://support.trainerroad.com/entries/22547739-How-do-I-allow-TrainerRoad-to-be-launched- from-the-website-

  • Need to 'launch' AIR app from SD card on Samsung Galaxy TABLET...

    April/28/11 at 3pm ET
    Hi to the group...
    Not 100% sure if this is proper forum to ask this, if anyone knows a better one please point me to it via ([email protected])
    Ok. Trying to see if my working .AIR app will run on my pals Samsung Tablet (before I buy one for myself)...
    Dropped the 'AIR' file onto the SD card (I can see it (the AIR file, size correct) via the fileBrowser app but clicking it does nothing.
    Of note AIR is installed in background of the device and it is running.
    Cant see/find an 'Adobe AIR launcher?' icon' anywhere (only see Adobe PDF browser).
    In all my web searching I see 10000 developer related tutorials re: creating an APK file / converting to APK file using Flash Professional ect.  Not what I am looking for...
    I think I am missing something very basic here is there a launcher for AIR apps on Android?
    TIA //GregH

    Hello
    Thank you for your post.
    You cannot throw directly from your external device, however you can once that file is transferred to internal memory.
    please review this guide for instructions on how.
    How to throw (send) music, video or picture files to a DNLA compatible device.
    https://us.en.kb.sony.com/app/answers/detail/a_id/34563/c/65,66/kw/34563

  • Flex wont launch my AIR app

    Now whenever I launch my air app I get this error:
    Process terminated without establishing connection to debugger.
    Command:
    "C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin\adl.exe" D:\fromLapTop\lapDocs\Flex\Workspaces\MothersRings\MothersRingsAir\bin-debug\MothersRings Air-app.xml D:\fromLapTop\lapDocs\Flex\Workspaces\MothersRings\MothersRingsAir\bin-debug
    Output from command:
    error while loading initial content
    I verified everything was in the locations specified. I also search on google and found a post somewhere that said I should change the xml namespace I tried: http://ns.adobe.com/air/application/1.1 and http://ns.adobe.com/air/application/1.5 but then it says it can't resolved <mx:WindowedApplication> as a component.
    Here is the source code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
    modalTransparencyColor="#663333"
    backgroundGradientAlphas="[1.0, 1.0]"
    backgroundGradientColors="[#663333, #663333]"
    verticalAlign="middle" horizontalAlign="center" width="100%" height="100%"
    applicationComplete="onApplicationComplete()">
    <mx:Script>
    <![CDATA[
    private static const neededForCompilation:AirGeneralImplementation = null;
    private function onApplicationComplete():void
    var can:MothersRings = new MothersRings();
    this.addChild(can);
    //can.labelMessage = "Loaded in an AIR Application ";
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    ]]>
    </mx:Script>
    <mx:Style source="style/style.css"/>
    <mx:Style>
    .header{
    fontSize:"18";
    fontWeight:"bold";
    TileList{
    backgroundColor:#996666;
    borderColor:#330000;
    rollOverColor:#cc9999;
    borderThickness:1;
    </mx:Style>
    </mx:WindowedApplication>
    Can anyone help me out?
    Thanks!!

    I agree with the first response...I usually see this error when I have already launched a test of the project (clicked the play button) and forgot to close it.  The issue you saw on the Internet will usually cause it not to run or do anything except just sit there.  I have to change that setting every  time I go from an XP to Vista machine...even though the both have AIR 1.5 on them.  If I don't change it, it doesn't run which bothers me from a distribution concern...I hope it will run regardless of the OS.
    HTH
    Dave

  • Problem starting AIR app from windows server 2003

    Hello,
    I have an AIR app that I am trying to run using a c#
    webservice under Win 2003.
    I am starting the application process (air .exe file) as the
    "Network Service" user which has full-rights on the app-folder and
    app-working folder. The problem is that once with the applications
    the "Adobe AIR Updater.exe" process is starting to (using the same
    user N.S.) and both of the processes stop responding.
    I have tried to start the process as "Local Service" with
    "Desktop Interaction" too but unfortunately with no result.
    I must tell you that under XP and Vista it runs perfect...
    Is there any security issue related to win 2003 or any way i
    can start an air app from command line.
    Also i am interested why "Adobe Air Updater.exe" is starting
    ?

    Not sure about  copying eulaAccepted file from one location to another - that would really depend on which user account your service is running under.
    A better approach (IMHO), is to open the services window (My Computer | <right-click> | Manage, then navigate to Services and expand the tree) so you can see your service on the RHS.
    Stop your service, then inspect it's properties, select the 'Log on' tab, then check the checkbox which says "Allow system to interact with desktop". Apply the change, then restart your service.
    next time the AIR runtime prompts you to accept the EULA, the window will appear on the screen, so you can click "I accept".
    After accepting, reverse the procedure which allowed the service to interact with the desktop, and make sure that you have modified the registry to prevent AIR from updating as mentioned in:
    http://help.adobe.com/en_US/AIR/1.5/air_admin/WS5b3ccc516d4fbf351e63e3 d11c0f59823a-7ff0.html
    You should be all set.

  • Start Air app from shell (adb shell am start)?

    SDK: 2.6
    Im trying to auto start my app when I push it to a device for testing. Im using the adb shell with the "am start" command.
    Example In Bash: $am start air.SampleProject
    Returns the error:
    Starting: Intent { act=android.intent.action.VIEW dat=air.SampleProject}
    Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=air.SampleProject flg=0x10000000 }
    Help?
    I have found you have to start the start or maybe add something else int he manifest but I cant figure it out. Is there a way to start a air app from shell?

    Using ADL
    $ adl releaseDirectory/yourApp-app.xml
    That's it. Just make sure you have your SWF file to be called from the application descriptor.

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

  • [svn] 2210: Fix for layout issue of AIR apps on mac when only width or height is

    Revision: 2210
    Author: [email protected]
    Date: 2008-06-24 11:56:52 -0700 (Tue, 24 Jun 2008)
    Log Message:
    Fix for layout issue of AIR apps on mac when only width or height is
    set on root WindowedApplication tag.
    Bugs: SDK-14643.
    QA: Yes, very much so.
    Reviewer: Ryan
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-14643
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/core/WindowedApplication. as

    Updates:
    I've opened a bug with Adobe regarding this issue:
    http://bugs.adobe.com/jira/browse/FP-4362
    Also, the Cancel operation on a FileReference causes the same issue to happen as does loading.  I really think it's an operating system focus issue.
    UPDATE:
    Looks like this has already been tracked and is scheduled to be fixed:
    https://bugs.adobe.com/jira/browse/FP-2785

  • How do I stop apps from relaunching when restarting my macbook?

    How do I stop apps from relaunching when restarting my macbook?

    Adding to the list of quitting app's before shutting down and the reopen app's options above, go to: Apple > System Preferences > Users & Groups > Login Items and remove any unwanted App's from the list that are set to open at login.

  • Every time I want to download an app From AppStore when I start downloading it after I write my password there is warning that says to me that it isn't possible right now to download power DVD mobile even now were this app is deleted from my ipad

    Every time I want to download an app From AppStore when I start downloading it after I write my password there is warning that says to me that it isn't possible right now to download power DVD mobile even now were this app is deleted from my ipad

    The power DVD app is active, and seems to download ok.  You have already deleted the app? 
    I suspect what is happeneing is that a download is in your queue, and is blocking the queue until it completes, thus the message every time you try to do a down load.  It may be failing because while it thinks you have the app, it is not finding it, and doesn't know what to do.  ( sounds like a poorly designed download).
    I think the way around this might be for you to resync with your iTunes, and let it reload the app onto your pad.  Let it complete the download.  Then, if you do not want the app, delete it again from your pad, and if you never want it, from I tunes as well.
    The next time they do an update, you may wind up in the same situation, so if it happens again, until they fix the download routine, you will get stuck again.
    So try the suggestion, and see if this clears it out.
    The other option would be to open your account in I tunes on your computer, let it complete the download there.

  • Hello i want to get an app from another store

    hello i want to get an app from another store , i am from india so use indian app store but i want to get textplus which is not available on indian store it is available on us store and text plus is a free app
    so i was thinking that can i make a fake id or something like to get an app from itunes using that fake id and then  installed it in  my ipod touch??
    and is it legal ? i dont want to do anything stupid with my ipod
    so pls reply and thankyou..

    if you have access to another apple id that has been created in that country you can do this, for example I travel frequently between two countries, I have a billing address in both, I create 2 apple id, one for each country.
    I can purchase from either store as long as I am logged into the corresponding ID for that country. No matter where I am geographically located.
    The main thing you need to be aware of is it you switch to many times between the stores, it will stop allowing you log into one of them, not sure what the actuall number of switches is though....

  • HT201679 I have just received an email saying i have downloaded an app from another device. This wasn't me, i have changed my password. What do i do now?

    I have just received an email saying i have downloaded an app from another device.
    This wasn't me, i have changed my password.
    What do i do now?

    Hi stirling r,
    I have always been very weary of fake emails and can easily spot the ones that get through the spam filters but for the first time in my 25 plus years memory of using email, I though a fake email was genuine.
    Ok, granted the email was supposedly from Apple so there's an implied level of trust there and I had updated my Apple ID details hours before, but it was only after doing a double take at the url link in the email I realised it was fake. It was pointing to an IP address (http://104.145.233.95/..etc) and not the usual https://www.apple.com/..etc.
    I just wandered how may Apple users, especially new ones would have unwittingly compromised their Apple ID details by this scam.  I would love to see Apple doing more to make its users aware of scams directed at them.
    Hope this helps someone!
    Identifying fraudulent "phishing" email
    Regards,
    Dee

Maybe you are looking for

  • Get file name and received date & time

    Hello experts, We are loading around 10 source files(xml) on regular basis to Target table. I have to capture source filename & received datetime of those files and status of file whether it loaded successfully or not(I can care take care of status o

  • My CS6 Action is always "Save As a jpg" despite other format save as in the action. Please help.

    I am helping a colleague with a batch file action where he needs to overlay a grid over a photo and then save it as another file.  In CS5.5 or earlier, no problem, but in CS6 it is not working for either of us.  The batch action (run from either Phot

  • How to delete an xml list from the data grid using the check box and button

    i am using an XMLList as the dataprovider for the dataGrid, there i have a checkbox for each row, i need to delete the row for which the checkbox is selected with the help of a delete button.

  • PDF printing - User wants larger printed font

    All, When printing custom reports using the PDF option, the printed output seems to be delivered in only one font size. I changed the font size in the report to 14 for each column from the default and it appears larger on line, but when printing with

  • Internal Profit (Between Two Profit Centers)

    Dear friends, My client has nearly 30 profit Centers (Each product/line) and final product of one profit center sya X is an in put of production process of another profit center say Y. Here problem is that Profit Center X wanted to claim some interna