Flash animation Question ( Web page problem )?

Posted on 2006-04-11
Last Modified: 2010-04-06
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.

Question by:MarkDPrice
    LVL 38

    Expert Comment


    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.


    Author Comment

    Thanks for the advice any chance you could point me in the right direction?
    LVL 4

    Expert Comment


    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 ( == null || == 0)
      visites = "first visit";
      visites = + " visite";
      if ( > 1)

    LVL 4

    Accepted Solution

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
    Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
    In this Micro Tutorial viewers will learn the basic shortcuts and functions of Illustrator. The viewer will learn about the paintbrush tool, anchor points, font sizing, and more.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

    779 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

    10 Experts available now in Live!

    Get 1:1 Help Now