PDA

View Full Version : weird: website using hundreds MB of RAM



vic
May 24th, 2008, 09:22 AM
hello,

i'm working on a website where i have about 30 seconds of video in a hi-res and i'm using AS3 within flash CS3.

i found out a problem that i havent been able to solve so far.

i place every video (encoded FLV and image sequences) by code with addChild and i remove them with removeChildAt(0).
since i only have one MC on stage everytime i can remove it this way.

well 800x600 resolution videos can make a big SWF file for sure, but when i click on each button and remove one movie and add another the RAM just blows up. it reaches 1GB of RAM of used memory by flash when i run the project.

it happens when i removeChild and add a new one, which is just a movieclip made of a sequence of images or a encoded flv MC.

has anyone had any problem like this? this is some huge memory leak, and i can't see the problem

thanks in advance,

vic
May 26th, 2008, 06:31 AM
no one have any ideas or theories on this one ?