How to mute other flash objects on the page with ActionScript or Javascript?

匆匆过客 提交于 2019-12-11 08:49:25

问题


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.



来源:https://stackoverflow.com/questions/5261973/how-to-mute-other-flash-objects-on-the-page-with-actionscript-or-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!