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

  • Home
  • SEARCH
  • 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 6993783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:48:30+00:00 2026-05-27T19:48:30+00:00

for a periodic table tool I’m making, I’ve incorporated an effect that changes the

  • 0

for a periodic table tool I’m making, I’ve incorporated an effect that changes the alpha value whenever I hover over an element (pretty standard).

I’ve noticed a mysterious gain in memory when hovering over my elements; using SYSTEM.TOTAL_MEMORY – there would be about 0.005MB increase in memory usage when I hover over an element, which isn’t relinquished when I move my mouse off. However, if I move my mouse back on again, there isn’t a second memory gain.

By commenting out bits of the function, I’ve noticed that it’s the alpha change that is causing this – here is the code for it:

addEventListener(MouseEvent.MOUSE_OVER,highlightthis);
addEventListener(MouseEvent.MOUSE_OUT,dehighlight);

function highlightthis(evt:MouseEvent):void
{
    if (evt.target is Element)
        evt.target.alpha = 0.5;

}

function dehighlight(evt:MouseEvent):void
{
    if (evt.target is Element)
        evt.target.alpha = 1;
}

Does anyone know why this memory gain is happening when the alpha value is changed? And curiously why it only happens once?

Some extra info: my Element class is a MovieClip, with a couple of TextFields, primitive variables and a MovieClip in it. It has had its mouseChildren property set to false (and buttonMode property set to true).

  • 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-27T19:48:31+00:00Added an answer on May 27, 2026 at 7:48 pm

    This may be a shot in the dark, I don’t know the reason, but could try to guess. Transparency requires knowing the color of the background, besides, in order to display transparency, you’d need one more byte of information (in BitmapData) per pixel (i.e. 33% increase RGB -> ARGB). So, once the player knows the solid color it doesn’t bother to save the invisible background, once the background becomes visible it, naturally, needs more memory to save the color info. Once that happens it either caches that info, or you simply didn’t wait until GC cycle.

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

Sidebar

Related Questions

I am forced to execute a periodic task using a timer that is invoked
Suppose you're developing a software product that has periodic releases. What are the best
I'm working on an application that deals with periodic payments Payments are done fortnightly
I have an application that records data from a manufacturing process on a periodic
I have a table called Periods that looks like this PeriodID | PeriodYear |
I have to do a project about the periodic table of elements. My dilemma
Some facts about my data I have a TablePattern that defines periodic day pattern
I'm currently writing a feature for an interactive periodic table which dynamically displays the
I am currently in the planing stage of building an interactive periodic table of
I have a sql table that looks like this PricelistID periodID periodstart periodend price

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.