Closed GoogleCodeExporter closed 9 years ago
> This it not really a bug report.
Next time please post this question at the SWFObject discussion group:
http://groups.google.com/group/swfobject
In any case the following should work:
function destroySWF() {
var obj = document.getElementById(yourId);
if (obj) {
for (var i in obj) {
if (typeof obj[i] == "function") {
obj[i] = function() {};
}
}
obj.parentNode.removeChild(obj);
}
}
swfobject.addLoadEvent(destroySWF);
Please let me know if this work for you, otherwise please up a test page.
Adding something like this to the library, I am not really sure for how many
people
this will be useful, so its under consideration.
Original comment by bobbyvandersluis
on 16 Apr 2008 at 9:18
Here is a test page:
http://engene.se/swfobjectcleanup.html
I've added an argument...
"apa=" + Math.round(daten.getTime() / 10000)
...to the swf name which makes it come alive quite quickly. If apa is unique
every
time (e.g removing / 10000), it works fine, but it feels like swooping dust and
dead
animals under the rug.
I've made the swf myself so the source for it is available, should there be any
need
for it.
Sorry for not posting this in the forums. Should I post this there instead now?
Thanks!
Marcus
Original comment by ehsm...@gmail.com
on 16 Apr 2008 at 11:08
If it's still an issue or if you would like to discuss it, please post it at the
discussion group.
Furthermore, please make sure that your Flash has been fully loaded by IE before
killing it, because you cannot cancel a loading asset in IE without breaking
references.
Original comment by bobbyvandersluis
on 17 Apr 2008 at 8:53
Original issue reported on code.google.com by
ehsm...@gmail.com
on 15 Apr 2008 at 10:53