Server-side SharedObject在開發FlashCom應用上是十分有用的東西,當建立它時,可以設置它的Persistence,例如在*.asc裡:
this.recorded_so = SharedObject.get("recorded", true);
當Persistence為true時,代表SSSO無論是Application Instance已經Unload了,FlashCom重新啟用過,它都會存在,下次再開啟那應用,還可以讀回以前所記錄下東西。
this.recorded_so = SharedObject.get("recorded", false);
當Persistence為false時,代表SSSO在Application Instance Active時才存在,當Application Instance已經Unload了,或FlashCom重新啟用過,它都不會再存在。 |