test if cookies can save
Hi gang,
I'm sort of a rookie at this... delving into the saving of cookies. All's going well, I've got data collecting, sending off to a cookie, and I can retrieve it later.
Howerver, I was wondering what the best method to TEST if cookies can save. I was going to try pushing a tiny bit of data to my cookie right after
import flash.net.SharedObject;
var cookie:SharedObject = SharedObject.getLocal("myCookie");
var mySmallData:uint = 0
cookie.data.smallData = mySmallData
if (cookie.size > 0) {
warningPopup.visible = false
} else {
warningPopup.visible = true
}
It's working locally when I test if from Flash or run the swf from my desktop, but breaks when I run the swf in Chrome from my desktop. Is this even the right way to go about it? It feels clunky.
Be gentle, I'm learning.
dp
