[导入]flash中的"cookie"
最简化的代码
ActionScript代码
//创建对象
var myFlashCookie : SharedObject = SharedObject.getLocal("flashCookie1");
//加载数据
if(myFlashCookie.data.tmpTxt)
{
testText.text = myFlashCookie.data.tmpTxt;
}
//保存数据
btnSave.onRelease = function()
{
myFlashCookie.data.tmpTxt = testText.text;
}
//清除数据
btnClear.onRelease = function()
{
...
文章来源:http://www.sadbus.com/Blog/HTML/2008_12/20081212170921.htm
浙公网安备 33010602011771号