user5717551
user5717551

Reputation: 25

Adobe AIR opening another AIR app

Im working in Flash CC using AIR3 and I prepared two AIR applications. I want to know if it is possible to run the second air app from the first app. Simple as I can when you click in App1 on button it would open new window with App2. Both apps are AIR but they have different stage size.

Is it possible to do?

Upvotes: 0

Views: 606

Answers (2)

Elena
Elena

Reputation: 11

I needed to start different AIR desktop applications from a single "Dispatcher" AIR desktop application and I had a hard time to understand how to do it. Trying different solutions didn't work. Finally I found different ways to do it.
The easier way is to use adobe.utils.ProductManager, it was tested on Windows.

Here is the code:

import adobe.utils.ProductManager;
private var pm:ProductManager = new ProductManager("airappinstaller");

private function launchMyApplication(myApplicationID:String):void
    {
        pm.launch("-launch " + myApplicationID);
    }

About MyApplication: It is Flex AIR Application and it has a folder META_INF/AIR; there is a file application.xml

  1. You can find the Application ID in the tag "id"
  2. If you forget to set allowBrowserInvocation = true; the Application you are trying to launch will never start.

Upvotes: 1

Alex Koz.
Alex Koz.

Reputation: 497

  1. See Native Process;
  2. See how run via url-sheeme: answer about BrowserInvocation;

If possible I prefer second solution - url-sheeme or air.swf.

Upvotes: 0

Related Questions