on (click) { var uid = _parent.userid.text; var sco = _parent.score.text; if (uid != "" && sco != "") { _parent.userData.addItem({id:Number(uid), score:Number(sco)}); //添加一项数据 _parent.userData.addSort(uid+sco, ["score"], DataSetIterator.Ascending); //对数据进行排序 _parent.userid.text = ""; _parent.score.text = ""; } } |
on (click) { _parent.userData.removeItem(); //删除选中的一项记录 } |
on (click) { _parent.userData.saveToSharedObj("scores"); //将DataSet记录集保存到以scores命名的SharedObject中 } |
on (click) { _parent.userData.loadFromSharedObj("scores"); //从SharedObject读取记录集 _parent.userData.addSort("newload", ["score"], DataSetIterator.Ascending); //对读取的记录集进行排序 } |
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |