[Pixlib] SharedObjectUtils: Request

Romain Ecarnot romain.ecarnot at gmail.com
Fri Jan 6 06:36:34 EST 2006


Hi Stéphane ;)

Agree with you...even If I don't think it is a high priority.. ;)
SharedObject are very easy to use and perhaps interfacing them more in
Pixlib is not really needed ?

However, we can start thinking about a possible implementation to help ;)
What I want to do :
- load / save
- read / write
- clear
I call this new class...for example : Cookie.as (funny name !! ^^ )

Hummm...for access level..we can choose :
- Simple access creating new instance of our new Cookie.as
- A "CookieManager.as" which can :
- load the same SharedObject all the time (unique cookie access) with
singleton pattern
- Managing others Cookie using HashMap to store cookie reference.

About data access in SharedObject now...
Naturaly, we can access shared data using property data of SharedObject
For example :
var o : Cookie = new Cookie("cookie_test");
var sTown : String = o.data.town;

Ok ok, but perhaps we can use __resolve hack to retreive data informations
directly from Cookie instance
For example :
var o : Cookie = new Cookie("cookie_test");
var sTown : String = o.town;

Hum....another idea about SharedObject feature Stephane ?
We can think about an "io" package for all in / out communication too :)

Cheers,
Romain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/pixlib_osflash.org/attachments/20060106/04dfee5a/attachment.htm


More information about the Pixlib mailing list