Just record the sound files using sfrecord~ and load them into Flash as usual. Audacity can convert to .mp3 if you want to go that route, though Flash should compress them too.
There used to be a more straightforward way to communicate messages between the two worlds, but Quicktime made some changes recently which killed this. You may get some luck with FLOSC if you want to do this---have Max values affect parameters in your Flash app, or vice-versa.
Actually Actionscript 3 can be used to do all kinds of things dsp related. I've seen some examples of pitch-shifting and waveform generation done purely in Flash with AS3. I don't have and links to hand, but they shouldn't be hard to find. It will be sigificantly more difficult to do such things in AS3 rather than MaxMSP though.
how can I embed the entire Max environment into flash WAS A MISTAKE, and I appologize.
But I do not want to embed the entire Max environment. Only the module where a computer keyboard acts as a piano. Namely, there are a specific keys on a komputer keyboard when pressed are sent to a piano (kslider object).
How can I include that portion of Max into Flash???