Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.UPDATE_START, updateStartHandler );
  2. CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.UPDATE_END, updateEndHandler );
  3. CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.FILES_DID_CHANGE, filesDidChangeHandler );
  4.  
  5. ...
  6.  
  7. private function updateStartHandler( event:DocumentStoreEvent ):void
  8. {
  9. trace( "update started" );
  10. }
  11.  
  12. private function updateEndHandler( event:DocumentStoreEvent ):void
  13. {
  14. trace( "update completed" );
  15. }
  16.  
  17. private function filesDidChangeHandler( event:DocumentStoreEvent ):void
  18. {
  19. trace( "files did change" );
  20. // This will list the documents that have been changed
  21. for each (var document:Document in event.documents)
  22. {
  23. trace( "changed: "+document.filename );
  24. }
  25. }
  26. // com.distriqt.CloudStorage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement