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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:29:12+00:00 2026-05-27T00:29:12+00:00

I am a flex programmer but i had nothing to do for handle manage

  • 0

I am a flex programmer but i had nothing to do for handle manage memory in my projects. I think lack of memory management is reason for loading lag of swf file. Can any one help me to how to handle manage memory in flex/ as3 codes.

  • 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-27T00:29:13+00:00Added an answer on May 27, 2026 at 12:29 am

    One of the most problematic uses of memory is not removing event listeners when you don’t need them anymore.

    For instance

    button.addEventListener(MouseEvent.CLICK, doSomething);
    

    When you’re done with that button, remove the event listener so the owner of “doSomething” can be garbage collected. When you add an event listener to button, the owner of “doSomething”‘s reference count is +1’ed. Everytime you remove an event listener you -1 that reference count. To be garbage collected, the reference count has to be zero’d.

    You can let the flash player do this for you (in most cases) by using weak-referenced event listeners, like so:

    button.addEventListener(MouseEvent.CLICK, doSomething, false, 0, true);
    

    Here are some more tips to help your memory management: http://blog.skinkers.com/2010/10/08/memory-management-in-air-as3-flash-garbage-collection/

    And if you want to learn about the garbage collector in detail, here’s a fantastic resource: http://jpauclair.net/2009/12/23/tamarin-part-iii-current-garbage-collector-in-flash-10-0/

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

Sidebar

Related Questions

I'm a C++ programmer, but I'm a newbie in Flex. I'm developing a Flex
Since flex memory management is poor, objects once instantiated dont die very easily (even
I am a Java programmer and need to work on a Flex/ActionScript project right
In Flex 3.2 I had implemented a tooltip manager and I used the topLevelSystemManager
I am a Flex developer. I think Flash builder is a great development environment
I'm a flex programmer who has just started to learn android today, successfully starting
I am ActionScript 3/Flex programmer, it is the first language I learned. I want
Flex has a plotchart component and a linechart component.. but I am looking to
Perhaps I have been doing Flex development with Frameworks like Cairngorm too long but
I have been seeing some Flex Frameworks, but would like to ask to 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.