ShareObject简记

 

引用:

_soundSO = SharedObject.getLocal("SoundShareObject","/");

if(_soundSO.data["selected"] == undefined){

checkBox_sound.selected = true;

}else{

checkBox_sound.selected = Boolean(_soundSO.data["selected"]);

}

 

保存:

_soundSO.data["selected"] = checkBox_sound.selected;

_soundSO.flush();

你可能感兴趣的:(object)