基本的Flash本地共享对象(SharedObject) ;在本地访问/存储数据。 import flash.net.SharedObject; var so:SharedObject = SharedObject.getLocal("userData"); so.data.username= "user1377"; so.data.uid= new Number(1337); // create object to store data var obj:Object = new Object(); obj.prop = "value"; so.data.userobj= obj; // store custom object in SharedObject so.flush(); // writes changes to disk(责任编辑:admin) |