// To save variable to ELS (EncryptedLocalStore)
var str:String = "Bob";
var bytes:ByteArray = new ByteArray();
bytes.writeUTFBytes(str);
EncryptedLocalStore.setItem("firstName", bytes);
// Read it from ELS
var storedValue:ByteArray = EncryptedLocalStore.getItem("firstName");
trace(storedValue.readUTFBytes(storedValue.length)); // traces "Bob"
// Remove it from ELS
EncryptedLocalStore.removeItem("firstName");
// Remove EVERY data from ELS
EncryptedLocalStore.reset();