2009年6月18日 星期四

flash.net.SharedObject

在http://learn.adobe.com/wiki/display/Flex/Shared+Objects
發現Action 中一個可以記住物件的方法叫SharedObject
說明:
1、hey do not expire by default. (預設沒有期限)
2、By default, they are limited to a size of 100 KB each. (預設大小100kb)
3、They can store simple data types (such as String, Array, and Date). (!可以存字串、陣列、時間)
4、They are stored in a location specified by the application (within the user's home directory). (存在使用者ap下的目錄)
5、They are never transmitted between the client and server. (不會在主從間傳輸)
6、Use getLocal() to create a shared object. (SharedObject.getLocal("myTasks"); ) (用getLocal()建立)
7、Use flush() to write the shared object to the client file. (sharedObj.flush())(用flush()去顯示 )
8、Use clear() to destroy a shared object (sharedObj.clear()) (用clear()清除)

Cool~stuff

2009年6月17日 星期三