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

SharedObject Events

The events of the SharedObject make it unique from any other ActionScript object. There are two events: onStatus and onSync. The onSync method informs each client to update itself with changes or additions made to the remote SharedObject.

.onStatus

onStatus is just like any other onStatus you have been introduced to. Each time the remote SharedObject receives an error, warning, or other informational note, this event is triggered. The data is received through an information object containing multiple properties including code and level. onStatus can only be overwritten after instantiating the SharedObject, unless you choose to overwrite the prototype. A full listing of all Information objects handled by onStatus is presented in Appendix C,“Information Objects (Server and Client) Quick Reference.”


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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