redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

Flash+cookies



 
Post new topic   Reply to topic    Web Design Forums -> Adobe Flash programming forum
View previous topic :: View next topic  
Author Message
Jony



Joined: 18 Mar 2005
Posts: 71
has found this on this forum:

_root.shareObj = SharedObject.getLocal("shareObj");
if (_root.shareObj.data.check == "here") {
gotoAndStop(43);
} else {
_root.shareObj.data.check = "here";
_root.shareObj.data.flush();
}

and thatīs work....

but, how to eliminate this cookie???

on my case i need eliminate after close the browser window.
  Reply with quote


Jake



Joined: 15 Mar 2005
Posts: 68
Why would you want to eliminate the cookie when the browser window is closed?? The whole purpose of a cookie is so that it's stored for the user to return to the site??

If you mean, delete it after another visit to ths it or something, then ok...

Once you have declared:
_root.shareObj = SharedObject.getLocal("shareObj");
then your cookie is accessed and back in memory.
From here you can completly empty it... If you know the variables you have stored in it, just set them to "" (nothing), or 0, or something you can recognise in your code next time the site loads.

I can't find any actual code for destroying the cookie itself though.
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> Adobe Flash programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group