to record a stream, simply replace the "live" in:
Code:
outStream.publish("MyAudio","live");
to:
Code:
outStream.publish("MyAudio","record");
the filename will be saved as "MyAudio.flv" in a streams folder. I read somewhere in the macromedia site that the streams could be saved as a mp3 instead, however I havent found any instructions for such thing...
Oh, and if you dont want to be replacing the file , you should store a variable on a shared object and add that as the filename. Something like:
Code:
var recordnum=mysharedObject_so.data.amount;
//after user selects recording
recordnum=recordnum+1;
mysharedObject_so.data.amount=recordnum;
outStream.publish("MyAudio"+recordnum,"record");
this is not a great copy/paste code like john's but it might give u an idea or something. A similar solution is found among the sample apps