开发者

disable flash audio in object params?

Is th开发者_Go百科ere a way of disabling the audio in a flash file via the object params?


No, there's no abstract way of disabling sound via the embed params (i.e. it's only possible if the content knows how to disable its own sounds based on something you pass in).

But using a parent container that kills sound (or more properly sets the volume to 0) and loads in content should be a viable workaround. Just keep in mind that there are some edge cases where content made in certain ways might not work correctly if it's loaded into another SWF.


Can you give more details?

Are you trying to access a swf via flashvars? the object params are just variables, you would need to access a method to be able to mute the sound. If you have access to the script this is pretty straighforward if not the container seems to be the solution, in the container , you could create an instance of the SoundMixer which controls the global sound in Flash and call the stopAll() method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜