HTML controling flash

I was wondering, i’ve seen it done but was wondering how a roll over(java script) can control a flash movie. I haven’t seen anything on this in flash books.

Cheers