Section 8.12. Conclusion

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.



Programming Flash Communication Server
Programming Flash Communication Server
ISBN: 0596005040
EAN: 2147483647
Year: 2003
Pages: 203

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net