Removing / Hiding a Flash SWF after it’s played

I recently was tasked with either removing or hiding a Flash SWF movie from a webpage only after it was finished playing. The reason for this was that the Flash SWF was playing in the header where a Google Custom Search bar was also supposed to be. SWF’s don’t like having things on top of them so I was presented with the aforementioned task.

After some digging and some modifying of JavaScript code, I finally found the answer. So here it is for all Flash/Web developers. Hopefully this will save you some time and help you out! Read more