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 6033293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:27:46+00:00 2026-05-23T05:27:46+00:00

I have a loader SWF that runs some code in the background and loads

  • 0

I have a loader SWF that runs some code in the background and loads other SWFs. Using this code:

private function loadScreensaver():void {
            screensaverSWF = new Loader();
            var req:URLRequest;
            switch(areaNumber){
                case 1 :
                    req = new URLRequest("exNorthernFrontierScreensaver.swf");
                    break;
                case 2 :
                    req = new URLRequest("exRomanEmpireScreensaver.swf");
                    break;
                case 3 :
                    req = new URLRequest("exRomanCarlisleScreensaver.swf");
                    break;
                case 4 :
                    req = new URLRequest("exRomanBritainScreensaver.swf");
                    break;
            }
            screensaverSWF.load(req);
            addChild(screensaverSWF);
            GAME_STATE = SCREENSAVER;
        }

I load the screensaver and add it to the stage. Using MonsterDebugger I can see that memory steadily rises from around 80mb upwards until the application exits (Im using windows projector). What I can’t work out is why, there is no code attached to the screensaver SWF, just some timeline animations of things fading in and out.
Any idea what’s going on here?

EDIT:
I’ve kept testing and found where I have an image that starts of stage then tweens on and off and is removed. When it loops it adds to memory again, as if the first image is still kept. This is all done on the timeline.

EDIT2:
http://www.rezmason.net/blog/caching-timeline-objects-in-flash This appears to be the problem but doesn’t give a solution. This screensaver could run up to 6 hours a day, at the moment it exits after 2.

  • 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-23T05:27:47+00:00Added an answer on May 23, 2026 at 5:27 am

    OK sorted the problem. It appears removing images towards the end of an animation and then looping the animation causes them to be added to memory repeatedly. Images are now either made invisible or moved off stage towards the end so they are reused.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a loader.exe with Main() that loads the 'UI' in WPF, the thing
For example, I have a piece of code that's generating a SQL*Loader control file
Hello I have a SWF clip that I got from a friend. the code
I have created a flash player that loads external swfs and control them through
I have a flex application that loads an external swf file. I created the
I've got an AS3 SWF that I'm going to be loading other SWFs into.
So, I have Flex project that loads a Module using the ModuleManager - not
I have an application that loads external SWF files and plays them inside a
I have Flash application (main_container.swf) that loads another swf file (page1.swf). I want to
I have this code <div id=c01 class=hider> < a href=flash.swf class=bump>flash</a> </div> and it

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.