//用户Cookie处理
function loadCookie() {
    loadNick_onLoad = function (so:SharedObject) {
        if (so.getSize()>0) {
            _root.txbusername.text = so.data.username;
            _root.txbpwd.text = so.data.pwd;
        }
    };

    SharedObject.addListener("usercookie",loadNick_onLoad);
    var so:SharedObject = SharedObject.getLocal("usercookie");
}


function saveCookie() {
    var so:SharedObject = SharedObject.getLocal("usercookie");
    if (chk1.selected) {
        so.data.username = _root.txbusername.text;
    } else {
        so.data.username = "";
    }
    if (chk2.selected) {
        so.data.pwd = _root.txbpwd.text;
    } else {
        so.data.pwd = "";
    }
    so.flush();
}

相关文章:

  • 2021-09-11
  • 2021-06-09
  • 2021-04-30
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-05
  • 2022-03-02
  • 2021-05-31
  • 2022-12-23
  • 2021-07-12
  • 2021-09-12
  • 2021-09-19
相关资源
相似解决方案