Created
July 29, 2016 00:53
-
-
Save marchbold/82391ed4bff260c4642cabeafed85283 to your computer and use it in GitHub Desktop.
Cloud container document updates using the Cloud Storage ANE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.UPDATE_START, updateStartHandler ); | |
| CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.UPDATE_END, updateEndHandler ); | |
| CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.FILES_DID_CHANGE, filesDidChangeHandler ); | |
| ... | |
| private function updateStartHandler( event:DocumentStoreEvent ):void | |
| { | |
| trace( "update started" ); | |
| } | |
| private function updateEndHandler( event:DocumentStoreEvent ):void | |
| { | |
| trace( "update completed" ); | |
| } | |
| private function filesDidChangeHandler( event:DocumentStoreEvent ):void | |
| { | |
| trace( "files did change" ); | |
| // This will list the documents that have been changed | |
| for each (var document:Document in event.documents) | |
| { | |
| trace( "changed: "+document.filename ); | |
| } | |
| } | |
| // com.distriqt.CloudStorage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment