1.Set allowBrowserInvocation
as true
in app.xml
2.Register BrowserInvokeEvent
in completion,
NativeApplication.nativeApplication.addEventListener(BrowserInvokeEvent.BROWSER_INVOKE, onBrowserInvoke);
3.Then define,
protected function onBrowserInvoke(event:BrowserInvokeEvent):void
{
argumentsText = event.arguments.toString();
}
4.Create Web Application with creation Complete,
var airSWFLoader:Loader = new Loader();
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
5.Add this in click action on your control which launches client AIR app,
var appId:String = ""; //Your client app id
var pubId:String = ""; //client air publisher
var arguments = //define
airSWF.launchApplication(appId, pubId, arguments);