I have dynamically added a Flex Object in a HTML page through JavaScript. The Flex object is located in a "div" tag. Now when I call the "removeChild" Javascript function to remove the dynamically added "Object" tag, the object tag gets removed succesfully; however the memory that has increased d开发者_开发百科ue to the loading of the Flex Object is never recollected by IE. Even if I refresh the browser the memory is still not cleared. How do I recollect the memory that was allocayed to my Flex Object?
This is a guess: Have you tried adding the OBJECT tag statically, and only changing its SRC attribute to load your Flex Object? To unload presumably you could try setting SRC to empty string.
Finally the issue is resolved. IE does not free the SWF if you have exposed some Flex functions to Javascript using ExternalInterface, you need to clean the memory mannualy. Heare is a link that helped me to resolve the issue http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg18731.html
精彩评论