Does Local Shared Objects work when running as an extension?
I dont get any errors but it doesn't seem to store my values.
var so:SharedObject = SharedObject.getLocal("testData");
so.data.client = "test";
var so2:SharedObject = SharedObject.getLocal("testData");
var result:Object = so.data.client;
However, checking the last two rows (by themself) after a restart of the extension leads to a result = null.
I need to store some connectionsettings locally for every installed plugin. (Different customers, different servers)
What is the best way to do that?
There's a number of good ways to do it. Perhaps the easiest is CSXS preferences
var testValue:String = "flintstone";
var result:SyncRequestResult = storePreference(testKey, testValue);
if(SyncRequestResult.COMPLETE == result.status)
You can also use AMF to store complex objects by simply writing them to file.
Works perfectly with the csxs preferences. Thank you!