Skip to content

Instantly share code, notes, and snippets.

@drewbourne
Created July 20, 2011 04:57
Show Gist options
  • Save drewbourne/1094370 to your computer and use it in GitHub Desktop.
Save drewbourne/1094370 to your computer and use it in GitHub Desktop.
ExternalInterface.addCallback("phoneHome", function(value) {
trace("phoneHome", value);
});
ExternalInterface.call("callFlashBackInXSeconds", ExternalInterface.objectID, 3000);
function callFlashBackInXSeconds(objectID, timeout) {
setTimeout(function() {
document.getElementById(objectID).phoneHome("Hi from JS");
}, timeout);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment