-
Automatically skip intro if visited
I have a home page with a Flash animation that has a lengthy intro that builds the page. The problem is, whenever the home button is clicked on any of the sub pages, it plays the Flash animation from the beginning, including the intro. This is very annoying.
I want to be able to start the animation on a frame other than frame 1 if the page has been visited before. I know this will involve cookies and variables, but I'm pretty new to Flash and not very good with these things so far.
Can anyone give me any pointers or direct me to a tutorial that might help?
Thanks
-
Hey,
Well I dont know how to answer your question, but I do have a suggestion. Why not just have a simple 'skip' button on your intro so that people can just skip if they have already seen it?
-
Originally Posted by Osteel
Hey,
Well I dont know how to answer your question, but I do have a suggestion. Why not just have a simple 'skip' button on your intro so that people can just skip if they have already seen it?
That was my solution. It has a skip button now, but I was unable to convince the client that was a good enough solution. You know how it goes. Heh.
-
FK's Official Mac Hater
I don't know very much about Shared Objects but you can look them up in the help file. This will allow you to store a variable on the computer and then you can check if it has been set to skip the intro.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
Flash Gordon
try this:
Code:
myCookie = SharedObject.getLocal("aCookiesName");
trace(myCookie.data.visited);
myCookie.data.visited=true;
the first time, you call this code, the trace will output: "undefined";
if you test it the second time it'll trace to true.
But some users have deactivated flash cookies
My letters on the F1 key have faded, how are yours today?
-
Originally Posted by McUsher
try this:
Code:
myCookie = SharedObject.getLocal("aCookiesName");
trace(myCookie.data.visited);
myCookie.data.visited=true;
the first time, you call this code, the trace will output: "undefined";
if you test it the second time it'll trace to true.
But some users have deactivated flash cookies
Then they be SOL.
Thanks, man!!!
-
will this work on a video swf as well? Do i put it in the fist frame? Also, do we name the "aCookiesName" anything or is it the name of the file or video?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|