Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

29.8. Summary

  • Using SharedObject for locally shared objects is painless in ActionScript 3.0.

  • SharedObjects give you a decent amount of storage.

  • Local SharedObjects are comparable to browser cookies but have more persistence, security, and size, and they require no bridge to JavaScript.

  • Storing information on a server is, in most cases, more secure and more appropriate for media or other large data.

  • SharedObjects are tied to an account on a computer rather than an actual user.

  • You can share information in a SharedObject between SWFs in different locations on the same domain by constructing an appropriate localPath argument.

  • You can create local shared objects that are used only in SWFs hosted from secure connections.

  • The user ultimately has control over the available size for shared objects.

  • When requesting more data than is available, the user is prompted.

  • You can find out whether prompts to expand the available SharedObject size were successful.

  • You can store custom classes in SharedObject instances with registerClassAlias() and, if necessary, IExternalizable.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial