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 © 2004 - 2008 Softanics. All rights reserved.
Delphi is a trademark of Borland Software Corporation.
Macromedia and Shockwave Flash are trademarks of Macromedia, Inc.