is it ok to use this to code to play sounds?

bgmusic=new Sound();

on (release) {
bgmusic.loadSound(“1.mid”, true);

but i can’t hear any sound

Well for one, I don’t think flash can play MID formats. I believe it’s only mp3 and wav formats.

any software that can transform mid to wav?

Well I know there’s a converter that converts wav to mid format, but I’m not sure if it does it the other way around. Try searching Google for “mid to wav converter” and see what comes up.