Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6856553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:54:03+00:00 2026-05-27T01:54:03+00:00

I’m looking for a code to stop all flash animations on a web page

  • 0

I’m looking for a code to stop all flash animations on a web page when this page/tab is not focused or active. Because this problem causes performance loss at any computer.

Any solutions with As3 or javascript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:54:04+00:00Added an answer on May 27, 2026 at 1:54 am

    It is possible to stop them all, but it is harder to resume them afterwards depending on how your code is organized, use this function to stop all movie clips:

    function stopEverything(disp : DisplayObjectContainer) : void
    {
        if(disp is MovieClip)
        {
            MovieClip(disp).stop();
        }
        for(var i : int = 0; i < disp.numChildren; i++)
        {
            var child : DisplayObject = disp.getChildAt(i);
            if(child is DisplayObjectContainer)
            {
                stopEverything(DisplayObjectContainer(child));
            }
        }
    }
    

    Then to stop all objects you would do: stopEverything(stage);.

    Note that this is only stopping MovieClip animations, all EnterFrame events will still be called.

    Another smart option is to verify that the application lost focus and then do stage.frameRate = 1;, and once focus is gained again you can set it back to what it was.

    stage.addEventListener(Event.DEACTIVATE, lostFocus);
    stage.addEventListener(Event.ACTIVATE, gainedFocus);
    
    function lostFocus(e:Event):void
    {
        stage.frameRate = 1;
    }
    
    function gainedFocus(e:Event):void
    {
        stage.frameRate = 24; // or whatever it should be
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.