Is there any way to mute other flash objects on the same page with ActionScript or Javascript? I can understand if this would be a security issue but my flash does have a user-initiated mode which takes over the screen and I was hoping this might be an exception where it's clear it has full priority for the user.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Exposing internal controls in a Flash movie is up to the programmer who writes it. If they haven't exposed an external mute/volume control and have documented it, you're out of luck. There is no universal API that can be called.
回答2:
Yes for security reasons, you cannot change parameters in other swf objects on the page, except they allow you to do this. In case if all the swf objects created by you, you can create mechanism with js were user interaction with one swf object send events to all other swf object and they change their state. But you cannot do this with 3rd parties apps.