Is there a way to launch an Adobe Air Application from the browser? I am developing an application that uses webcam, and when the user enter on my site, I need to start this adobe air application installed on the user computer. Is there a way to achieve this?
Thanks!
1.Set
allowBrowserInvocation
astrue
inapp.xml
2.Register
BrowserInvokeEvent
in completion,NativeApplication.nativeApplication.addEventListener(BrowserInvokeEvent.BROWSER_INVOKE, onBrowserInvoke);
3.Then define,
4.Create Web Application with creation Complete,
5.Add this in click action on your control which launches client AIR app,
Yes, it's called browser invocation.
This article explains how to do it. The main point is that you need to set the
allowBrowserInvocation
value totrue
in the AIR application's descriptor xml and listen for invocation events.This post gives a more concrete example, though it is a tad old.
This thread on the Adobe forums links to the overview of launching Air apps from the browser, and the discussion covers some common problems you might encounter.