ufk
ufk

Reputation: 32094

flex swfloader: can i control the volume of the application i'm loading?

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 ?

Upvotes: 0

Views: 368

Answers (1)

Bocaxica
Bocaxica

Reputation: 4680

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?

Upvotes: 1

Related Questions