SoundVolume Property
Syntax
C#
public int SoundVolume;
Description
The SoundVolume
property gets or sets the sound volume for Flash sounds.
For more information about the maximum volume value, see MaxSoundVolume.
Example (C#)
private void trackBarSoundVolume_Scroll(object sender, System.EventArgs e)
{
f_in_box__control1.AxCode.SoundVolume =
(ushort)(trackBarSoundVolume.Value * f_in_box__lib.AxCode.MaxSoundVolume / 100);
labelSoundVolume.Text =
(f_in_box__control1.AxCode.SoundVolume * 100 / f_in_box__lib.AxCode.MaxSoundVolume).ToString() + " %";
}
Example (VB.NET)
Private Sub trackBarSoundVolume_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles trackBarSoundVolume.Scroll
f_in_box__control1.AxCode.SoundVolume = trackBarSoundVolume.Value * f_in_box__lib.AxCode.MaxSoundVolume / 100
labelSoundVolume.Text = (f_in_box__control1.AxCode.SoundVolume * 100 \ f_in_box__lib.AxCode.MaxSoundVolume).ToString() + " %"
End Sub
Use this property to dynamically adjust the playback volume of Flash movies in your application.