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.
you may, as much as Flash allows, re-write max/msp algorithm in Flash script if everything has to be in Flash.
otherwise there some things that connect Flash and max/msp like,
but this is probably not what you are looking for...
java synth might be another option to re-write your sound engine to integrate with Flash but i could be very wrong...
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.
no, no, no. The computer keyboard acts as a piano keyboard. That's why I need MAX. If you press on a keyboard it it sends note messages to a piano keyboard which are heard as a tones on a piano.
Besides, I do not knot Actionscript.
The sound files are a different thing. I think I am going with the suggestion that seejayjames gave me and load the into Flash. With them I don,t have a problem, but with the computer/piano keyboard.
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???