• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Basic Data Exchange > Sharing Data Using the Local Connection Object

Sharing Data Using the Local Connection Object

The local connection lets two or more Flash movies send messages to each other. Although the movies can be in different parts of the same browser page or in pop-up windows, the communication takes place only on the local machine (hence the name “local connection”). When you build Macromedia Central apps, this feature is used extensively. That is, you’re main app can trigger events in your pods (mini versions of your app).

Sending messages to Flash movies playing on other people’s machines would be really powerful—and you’ll get to see how in Chapters 8 and 9. Even still, applications for the local connection object are pretty wide. For example, you could create an optional pop-up help window that could effectively take control of the main window. Also, you can save download time by loading audio or other media into a separate Flash movie and then letting several other movies play the music. The best part about learning how the local connection object works is that the syntax is consistent with its remote connection counterpart (called NetConnection).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint