WAV 2 SWF Batch conversion

Can anyone tell me how to do it?

I have a whole bunch of WAV files, and for each of them I am to create a SWF file, which will contain this WAV (of course compressed as MP3) on the first frame, and then on a separate leyer there will be a stop action on the last frame, corresponding to length of this WAV. The SWF is supposed to have the same name as WAV. I
s there any way to automate this process?