mercredi 23 décembre 2015

Is it possible to make a connection to a Flash instance in the browser from an AIR app?

Is it possible and how would I make a connection to a Flash instance in the browser from an AIR app running on the desktop?

I'm opening up a browser window to a specific web page where I can add a Flash player instance. I then want to communicate with the browser instance in a one way communication.

Example from AIR app:

  1. var connection = connectToBrowserFlashInstance()
  2. connection.send("updated");

Example code from Flash instance:

  1. addEventListener("messages", messageHandler);
  2. if (message=="updated") then do something

Aucun commentaire:

Enregistrer un commentaire