codice:
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
_root.prova.stream_0.attachVideo(my_ns);
my_ns.play("yourfile");
this.createEmptyMovieClip("flv_mc", this.getNextHighestDepth());
flv_mc.attachAudio(my_ns);
var audio_sound:Sound = new Sound(flv_mc);
// Add volume buttons.
top_b.onRelease = function() {
if (audio_sound.getVolume()<100) {
audio_sound.setVolume(audio_sound.getVolume()+10);
updateVolume();
}
};
stop_b.onRelease = function() {
if (audio_sound.getVolume()>0) {
audio_sound.setVolume(audio_sound.getVolume()-10);
updateVolume();
}
};
Crei un movieClip e ci attacchi lo stream flv come attachAudio. Crea un oggetto Sound e associagli il movieclip appena creato. Usa i metodi di quest'oggetto Sound per controllare il volume.
Ciao.