a development with Flash being able to send midi information to the midi ports - not accepting midi tho:
http://osflash.org/flashmidi
there is a page about "midiInput", although to display properly, needs to be viewed from a windows machine. says 'new', so maybe they found a way, for windows-only.

a programmer discussion about midi for flash here:
http://www.xtyler.com/code/2