Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 5 of 5

Thread: About invisible movie clips...

  1. #1

    About invisible movie clips...

    Is an invisible moviclip still in memory?
    I am trying to free some memory since i have lots of movie clips...
    Or i should rather delete them and then add them again?


  2. #2
    Yes, they're still in memory — though, they're not necessarily rendered since their visible = false or if they're not on the display list. But rendering and memory are two separate things.

    If you remove them, stop their timeline, and make sure to clear all references to them, then yes, they should get garbage collected.

  3. #3
    Thanks Creatify for the quick reply.
    So, what would be the best approach to deal with 4000+ mcs? Adding and removing at the same time?
    Since its a big picture matrix and i just want to show a small part (what is in the lense) of the entire picture as the user moves the lense around.


  4. #4
    I'd assume 4000+ mcs is going to perform horribly if they're all on the stage at once. If all those clips are simply tiled next to each other forming one large 'image' — I'd draw all of those to one huge bitmapData. Then you can use scrollRect as a 'mask' or use blitting (can google that) to get performance where it needs to be. I haven't used it, but you may look into this as well — looks interesting.

  5. #5
    Hello Creatify,
    Thanks for ur reply. I am not planning to load all of them at the same time, but just the ones that are inside of a "lense" that i am trying to create.
    I checked ur link and it is something like that (thanks by the way).
    But i have to do it on my own... :-(

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012