Flash animation Question ( Web page problem )?

I have created a flash animation for one of my web pages and everything thing looks great but there is just one small problem. Is it possible if the user clicks away from the web page that and then clicks back to the same web page the animation does not start again, basically where the animation finishes I want the last frame to be displayed and not the whole animation.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


The default behavior is as you describe, when you click away from a page with an animation, then return to that page, the animation starts at the beginning. If you have to have a way around that, your best bet might be by storing a session variable or a cookie, so you know that it's the same user for a certain period of time, and using server side programming, recognize them and feed them an image of the final frame rather than the whole animation. You might also want to give them some way to see the whole animation again, if it's something they might want to replay for themselves or others.

MarkDPriceAuthor Commented:
Thanks for the advice any chance you could point me in the right direction?

you can use cookie by Flash and put a flag in it to tell that you already read the animation.

So, at the beginning of your animation, read the cookie and if it exists, pass the animation.

cookie = SharedObject.getLocal("compteur");
if (cookie.data.visites == null || cookie.data.visites == 0)
  visites = "first visit";
  visites = cookie.data.visites + " visite";
  if (cookie.data.visites > 1)

be careful : my Regards are in the code :) Just delete them

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Graphics Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.