Hey, I got a swf logo at www.level.is that I want to play once per session. Preferably I want it to play once every time someone opens or closes the tab/browser but not while the user navigates the site…
I’m using:
mySharedObject = SharedObject.getLocal(“savedObject”);
_root.onLoad = function() {
if (mySharedObject.data.visited) {
_root.gotoAndStop(92);
} else {
mySharedObject.data.visited = true;
mySharedObject.flush();
result = mySharedObject.flush();
if (result) {
//all good
} else if (!result) {
//user at never – prompt user
System.showSettings(1);
}
_root.play();
}
}
At the moment but it seems to randomly jump between frames even tho I have it set to the last frame of my animation…Also it doesn’t play when I close my browser and open it again… It seems never to play for me even if I clear my cookies…
Does anyone have a better code for me? I’m a complete newbie in AS and flash but I get by with HOURS of googling and asking… Thanks!