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

8.12. Conclusion

Shared objects are an excellent way to share information within a single class of objects or across objects or components in an application. Whenever you need to create an object or component with shared behavior, you should consider creating a shared object or accessing one provided by another object. For example, if you create a video conference component, consider storing information about each user's stream and video window in a shared object or objects. Information such as the video resolution, video and audio quality, x and y location of each video window, and the audio or video mute state can all be written into a shared object. As long as one instance of an object is responsible for updating its part of the video conference data, the others can reliably react to changes in shared objects.

Chapter 13 and Chapter 14 cover creating communication components, and Chapter 15 describes how to build components and real applications using shared objects. The next chapter, Chapter 9, covers another way to communicate between movies and the server, using remote method invocation.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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