Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Browser Invoke Event Code Sample for HTML

$
0
0
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 );
}

Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>