The Ultimate Guide To LocalConnection – SWF to SWF to AIR to AIR to SWF

Even if it stands in documentstion (some crucial things mentioned in one line somewhere), it was really tricky thing to figure out how to make LocalConnection-s work between different application runtimes (flash player / air). It got even more tangled with empty flash player error saying “Error #2044: Unhandled StatusEvent:. level=error, code=”. Basically, there is a generic method/form, with underscore prefix for connection name, that you can successfully use in all cases, but if your application requires higher security you should define your connections more exactly.

Based on your applications origin (AIR / flash player) you may define a few types of communication nature:

  • SWF to SWF on a same domain
  • SWF to SWF on different domains
  • AIR to SWF
  • SWF to AIR
  • AIR to AIR

Read the rest of this entry »

LocalBroadcaster – multiple LocalConnections

The LocalConnection class lets you create a LocalConnection object that can invoke a method in another LocalConnection object. (adobe)

LocalBroadcaster

LocalBroadcaster

The problem is, LocalConnection allows you to communicate only between two .swf files. The LocalBroadcaster class lets you create multiuser LocalConnection-s. Post includes:

Read the rest of this entry »