Passing a value from javascript to flash to play that movie?

If I had created a movie player in flash.

And output a series of movie clips from the database below. Is it possible using javascript to perhaps pass the details to the flash player to start playing that movie clip.

I would really like to know how to do this for a personal project of mine, and would appreciate any advice.

Thank you.