Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,546 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,265 people online right now. Registration is fast and FREE... Join Now!




Unexplained Drop In performance

 
Reply to this topicStart new topic

Unexplained Drop In performance, Every time XML and thumbnails are loaded and unloaded

lost child
post 23 Jul, 2008 - 10:06 PM
Post #1


New D.I.C Head

*
Joined: 1 Mar, 2008
Posts: 8


My Contributions


‘Sup, folx.
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.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 02:14AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month