Solved

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

Posted on 2008-06-10
2
118 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
  • 2
2 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 250 total points
Comment Utility
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
Comment Utility
I'm glad I could help.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses how to create an extensible mechanism for linked drop downs.
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 …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now