0 Replies Latest reply on Mar 16, 2011 10:29 AM by bdog703

    Store data on local disk from extension panel




      I'm trying to write an extension to InDesign and I use the following code to store a simple string in the encrypted data store that is available in Air:



            var hostnameBytes:ByteArray = new ByteArray();


            EncryptedLocalStore.setItem("hostname", hostnameBytes);



      Then, I use the following code to retrieve the data from storage:



          storedValue = EncryptedLocalStore.getItem("hostname");

          if (storedValue != null)


                serverName = storedValue.readUTFBytes(storedValue.length);




      However, the above does not work within the context of the extension. Do we have access to the encrypted data store in the extensions? Is there anything else that I need to do to get this to work?