moock.org is supported in part by


April 21, 2004

save data to disk more easily

while writing Unity apps lately i got very sick of using SharedObject to store user preferences to disk. so i wrapped the SharedObject class in a custom class, LocalData. i now use it for all my work.

here's what it looks like to save and load data via LocalData:
  LocalData.save("userDetails", "username", "Colin");
  var uname:Object = LocalData.load("userDetails", "username");

what a relief.

>> read about and download LocalData here

Posted by moock at April 21, 2004 01:56 PM