This project provides a bi-directional midibridge that enables Flash or Javascript apps to send midi events to, and to receive midi events from the midi system of your computer. This means for instance that you can control a Flash or Javascript app via your midi controller, and vice versa that can control a midi device from Flash. The term ‘midibridge’ includes all Java and Actionscript code, and all Javascript, HTML and XML files that make this possible.

via code.google.com and abumarkub.net