0

i have a flex application that loads flash files using SWFLoader. is there a way to control the audio volume in that swf from my flex application ?

ufk
  • 30,912
  • 70
  • 235
  • 386

1 Answers1

1

You can do it using the SoundTransform like this.

var soundTransform:SoundTransform = new SoundTransform(volume);
swfLoader.soundTransform = soundTransform;

The volume should be a Number between 0 and 1. Is this what you were looking for?

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
Bocaxica
  • 3,911
  • 3
  • 37
  • 54