homepage Welcome to WebmasterWorld Guest from 23.20.63.27
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Muting the Sound in a Flash Movie
Starting a Flash Movie without sound
stcrim




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

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-

 

httpwebwitch




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved