there is no native support for cookies in AS3, but have a look at
or search for CookieUtil in the Adobe Flex libraries. This is a small class that you can add to projects and then get/set at will. I have found it very easy to use.
Thanks Richard. I was aware of that library but was really wishing that Flex would handle cookies in some built-in/reasonable fashion since they are so ubiquitous. Just for giggles, what actually happens to the cookies? I.e. it looks to me like the HTTPService class must make it's call to the remote service without including cookies that would normally be passed by the browser and the same in response. ie. the browser or someone must strip the cookies from the response before passing it to the Flash VM. A complete HTTP response would include the cookies would it not?
I ran the response from the server in debug mode and hunted through the ResultEvent to the my call to this remote service that sets a cookie in the response and there was no where in the ResultEvent that had the cookie or anything resembling a cookie. So something is actively stripping them. It may just be the browser/container but it seems very strange to me that the response would not be complete when it is returned to the Flex VM.
Does anyone have any further information on this?
Im working on a air app with the smae requirement as yours, do you got any luck with your project. If so please help me reading the cookies.