开发者

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

开发者 https://www.devze.com 2022-12-14 02:18 出处:网络
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 appli开发者_高级运维cation ?You can do it using the SoundTransform

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 appli开发者_高级运维cation ?


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消