Could anyone PLEASE help me out with this one?

All we need is to get the Javascript on a html-page to respond with the flash file. Could you show a ready source-code that works. all we need is a couple of buttons that send FS command data and the Jscript to understand it.

HELP!