Random flash conversation

I want to create a scene with 2 characters that have a random conversation.

Basically character 1 says something… loading a random mp3 file from folder ‘character1’ and lipsyncing.
Then, once the mp3 has finished playing, character 2 say something… loading a random mp3 from folder ‘character2’ whilst lipsyncing.
Then the process is repeated.

Just wondered if anyone has done anything like this or knows how to do it.

Cheers.