Working around __flash_removeCallback

Abusing your own blog for delicious like bookmarking should be forbidden!

Either way, Dave Smith provides (see comment section) a nice workaround for __flash_removeCallback “Object required” alerts when embedding flash in internet explorer and reloading the page.

<script type="text/javascript">
(function(){var s=function(){__flash__removeCallback=function(i,n){if(i)i[n]=null;};window.setTimeout(s,10);};s();})();
</script>

I decreased the setTimeout interval to somewhat higher then 10ms, because for me it’s just a charting dashboard, which doesn’t interact too much between flash and html. Overwriting the __flash_removeCallback only every 200ms proved to be sufficient.

Be Sociable, Share!

Tags: , , ,

Leave a Comment

This blog is kept spam free by WP-SpamFree.