开发者

IE doesnot clear Flash Object from memory

开发者 https://www.devze.com 2022-12-31 06:51 出处:网络
I have dynamically added a Flex Object in a HTML page through JavaScript. The Flex object is located in a \"div\" tag.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号