Search code examples
flashair

Is there a way for two AIR apps to share data?


I'm trying to figure out a way to avoid writing a file to the file system with info that I need to pass from one installed Desktop AIR app to another. Is there a way to do this through the SharedObject and if not, is there any other solution?


Solution

  • You seek the LocalConnection class.

    If you go to that link and scroll down a bit, you'll see a paragraph that begins, "From an AIR application to another AIR application." This section of the page contains instructions and sample code. This approach works only with desktop AIR apps, not mobile apps.