PDA

View Full Version : sharedObject


eliddell
01-27-2009, 10:10 PM
I wanted to create a shareed object to keep track of a when an AIR app was installed and set an expiration date.

i was hoping to control where this sharedObject is created.. but it seems that flash will put it somewhere secret.. is it possible to change where the LSO is created? and where it is looked for?


var firstRun:SharedObject = SharedObject.getLocal("/firstRun");
//firstRun.clear();
if(firstRun.data.userInfo==undefined){
trace("this is the first time you are here");
firstRun.data.userInfo="BAM!"
}else{
trace(firstRun.data.userInfo);
}