Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Setting a cookie to make my flash project run only once.

Posted on 2008-06-10
2
Medium Priority
?
123 Views
Last Modified: 2010-04-25
I have made a flash project and I'm trying to make a cookie that will only run when you enter the website. I don't want it to run again when you return to the home page. I'm all new at this and really have no idea.
0
Comment
Question by:publishingame
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 750 total points
ID: 21776042
I am not a Flash expert but if you want a solution in Flash then look at a Shared Object.  There is info on this, including info on making, writing, and reading them, at http://www.permadi.com/tutorial/flashSharedObject/index.html .

Another method would be to use Javascript cookies.  However you would need to use Javascript to write the object that has the Flash too or Javascript couldn't "stop" the Flash.  There is a great tutorial and script for Javascript cookies at http://www.quirksmode.org/js/cookies.html .

Let me know how this works as a start.  If you have a question or need more info let me know.

bol
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 21815595
I'm glad I could help.
0

Featured Post

Vim Reference Guide

Vim is a powerful text editor favored by many sysadmins and developers - here are some commands that you'll want to keep in your back pocket!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question