can macromedia flash 8 support m4a sound file

344 Views Asked by At

can anyone know macromedia flash 8 support m4a sound file or not. If it possible then how to implement on press the button and again stop sound.

1

There are 1 best solutions below

0
AsTheWormTurns On

You could have:

var netconn:NetConnection = new NetConnection();
netconn.connect(null);

var stream_audio = new NetStream(netconn);

pause_btn.onPress = function() {
   stream_audio.pause();
}

play_btn.onPress = function() {
   stream_audio.play("audio.m4a");
}

Put this code in the first frame of your timeline, then create two buttons (movieclips) and name them "play_btn" and "pause_btn".