1 Reply Latest reply on Oct 14, 2009 5:29 AM by moutfeh5

    Browser Invoke Event Code Sample for HTML

      I had some trouble locating a sample of the Browser Invoke Event, where you can pass parameters from the Javascript in your badge install, so I'm posting this in case it helps someone else.

      In your badge, add:

      so.addVariable("appinstallarg", "yoursampledata"); // remember that Adobe has a restricted type of characters you can pass in...

      In your app code:

      air.NativeApplication.nativeApplication.addEventListener(air.BrowserInvokeEvent.BROWSER_IN VOKE, onInvokeEvent);
      function onInvokeEvent(e) {
      arguments = e.arguments;
      air.Introspector.Console.log( arguments );
      }