F-IN-BOX Delphi Edition Help >> How to

Enable/disable flash sounds

Using the component you can turn on/off all sounds in all loaded flash movies.

  1. Use global procedure SetAudioEnabled to enable/disable the sounds.
  2. Use GetAudioEnabled to get current status of sounds enabling.

[ Delphi ]
procedure TMainForm.Mute;
begin
  if FlashPlayerControl.GetAudioEnabled then
    FlashPlayerControl.SetAudioEnabled(False);
end;

[ Builder C++ ]
void __fastcall TMainForm::Mute()
{
  if (Flashplayercontrol::GetAudioEnabled())
    Flashplayercontrol::SetAudioEnabled(false);
}

More about TFlashPlayerControl
Copyright © Softanics. All rights reserved
F-IN-BOX is a registered trademark of Softanics|Delphi is a trademark of Borland Software Corporation|Macromedia and Shockwave Flash are trademarks of Adobe, Inc.