I am writing code for an app that uses a Remote Shared Object as a database. I want that shared object to be locally persistent, which is an option you can set by defining the file location ("/") of the local file:
var RSO:SharedObject = SharedObject.getRemote(“RSOname”, rtmp.uri, “/”);
…however, that seems to be too simply thought, since it won’t work.
My intention is to have a local copy of the RSO on the local mobile device, so that in case there is no mobile network available, the app will temporarily use the local copy of the RSO to work. Once a network connection is available again, the local changes should be sync-ed with the RSO on the server.
Does anyone know how to do this???
Help is much appreciated since I cannot find anything on this on internet.