eyeblaster has some interesting uses of flash + javascript to do very intrusive advertising
here is the eyeblaster creative guide 5.4
note their flash2javascript api, the flash calls javascript commands using fscommand() and you can see the last page of the pdf, where it shows you among others: ebShake() -- which shakes the browser for a number of seconds, and ebStartTimer() and ebEndTimer(), functions to measure the time of user interaction on the page
they keep track of how long your mouse hovers over their advertisements, how many times you replay an ad (these ads are little animations/movies) and more
tagged as eyeblaster, api, flash, javascript