Guest User

Untitled

a guest
Jul 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. private function onInit():void{
  2. var appSO:SharedObject = SharedObject.getLocal("yourappdata");
  3. if(appSO.size < 0){
  4. //do your init code
  5. appSO.data.initialized = true;
  6. appSO.flush();
  7. }
  8. }
  9.  
  10. <mx:Application ... creationComplete="init()"/>
  11. <mx:Script>
  12. private function init() : void {
  13. ... // put your initialization routine here
  14. }
  15. </mx:Script>
  16. </mx:Application>
Add Comment
Please, Sign In to add comment