This issue can only be solved by the advertiser who sends the Flash code.
Advertisers like to place their ads at top of everything and therefore intentionally send a certain command (wmode) in their Flash code to play the video of the ad at top of everything.
Google for example does not allow anything not even temporarily to be placed over their ads. This is why all Flash video ads by Google look like your example.