View Full Version : JS How can I mute the sound of swf movie by javascript
Abdelkader
November 6th, 2009, 09:34 PM
Hi everybody
I'm new in javascript and I'm creating a website using html and wanna embed a swf movie but i want to mute its sound , i cant do it from inside the movie and i don't want to do this and i don't want to let the visitor to control the sound volume of that movieis. I wanna mute the movie.
is there any javascript code that i can use to do this?
TheCanadian
November 7th, 2009, 02:01 AM
Why can't you do it in the movie? If you're wanting to use an HTML button you could always use ExternalInterface with JS. If you can't edit the code of the movie you could create a container movie which handles the muting. I don't know if this is possible with just JS.
Abdelkader
November 7th, 2009, 05:59 AM
Dear TheCanadian
I do not have the open fla files of those movies so I can not control the volume of the film within the film itself and I can not download all the movies and re-place them in a container because there are hundreds of them, I want to do the job using the code and I use the following code to embed the movie in the page
<object height="390" width="500">
<param name="movie" value="http://media.y3.com/games/files/aroundtheworld.swf">
<embed src="http://media.y3.com/games/files/aroundtheworld.swf" width="450" height="390"> </embed></object>
what can i do to mute the movie via this code
thanx very much for ur help
simplistik
November 7th, 2009, 09:48 AM
you can't do anything. if the script isn't already setup to allow you to do that
Abdelkader
November 7th, 2009, 09:53 AM
Dear simplistik (http://www.kirupa.com/forum/member.php?u=3774)
thanx for ur reply
some friends advised to create a new flash player and customize it to do this put i don't know how to do this? is this solution can do the job? and how can i build a swf flash player?
waiting for ur advise
cheers
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.