Enable or Disable Flash Sounds
The component provides global functions to control sound playback in Flash movies.
You can enable or disable all sounds in all loaded movies.
- Use SetAudioEnabled to enable or disable sounds.
- Use GetAudioEnabled to check the current audio state.
Delphi Example
procedure TMainForm.Mute;
begin
if FlashPlayerControl.GetAudioEnabled then
FlashPlayerControl.SetAudioEnabled(False);
end;
C++Builder Example
void __fastcall TMainForm::Mute()
{
if (Flashplayercontrol::GetAudioEnabled())
Flashplayercontrol::SetAudioEnabled(false);
}