Me and my friend have been struggling with a nasty memory leak/waste problem in flash.
There’s a movie clip in the library that contains a bunch of functions. It basically loads an external XML containing a list of URL paths for a bunch of thumbnail movie clips to load external JPEGs from.
The idea is to change the thumbnail gallery depending on which button in the menu is pressed. So when you click on a button, that movie clip (containing the thumbnail function) is removed and then attached from the library again and fed the XML path based on the selection from the menu.
For some reason, with EVERY time that movie clip is removed, and re-attached, the performance of the Flash takes a major hit and the frame rate drops visibly and things get progressively worse. It almost feels as if the variables that are loaded into the MC attached from the library are still somewhere in the memory even after the MC is destroyed. Also, despite the fact that it loads a total of no more than a couple of different XMLs, it slows down as if each time it loads a new XML and a set of new thumbnail images every time. What the…
Is this a scoping issue? What the hell is this?
Can anyone please suggest something? We’ve been pulling our hair over this for weeks and the production deadline is nearing.
Thank you for any help.
Unexplained Drop In performance
Page 1 of 1
Every time XML and thumbnails are loaded and unloaded
0 Replies - 532 Views - Last Post: 23 July 2008 - 11:06 PM
Page 1 of 1