Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: open

Muting the Sound in a Flash Movie

Starting a Flash Movie without sound

   
3:14 am on Apr 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it possible to have one flash movie and using javascript of some means, have the movie on one page without sound and on another page with sound?

-s-

6:54 am on Apr 18, 2008 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



yes it's possible.

the simplest method is to pass a querystring to the SWF. Inside the movie, this becomes a variable you can use to control the volume.

To tell a flash movie to be quiet, <embed> the thing using

movie.swf?mute=1

as opposed to
movie.swf

Then inside your SWF, read the value of "mute" and if it's == 1, turn the volume down to 0.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month