Solved

Adobe Flash Mute Audio On Page Load

Posted on 2010-09-15
13
460 Views
Last Modified: 2012-05-10
Hi All:

I have a flash movie that plays on a web site and I need to prevent the audio from playing for everyone who visits the site.  Is there a way through the html parameters to automatically shut off or mute the audio on start up or page load?  I believe the flash object embedded in the html codes is: swflash.cab#version=8,0,0,0.  Or is there a way to alter the SWF file to mute the sound?

Thanks - Dave
0
Comment
Question by:DaveFrazell
  • 7
  • 6
13 Comments
 
LVL 19

Expert Comment

by:quizengine
ID: 33691169
You can pass variables into a swf from the html page, but there needs to be code *inside* the swf that can recognise the variables and respond to them. This means that the .swf will need to be edited to add the new behaviors. It's best to work from the .fla source document rather than the .swf, but there are tools that can decompile the swf back into a fla if you don't have access to the original .fla

Naturally you will either a) need to have Flash / actionscript skills yourself to edit the fla, or b) recruit a freelancer to do that for you.

Having said all of that, since the fla needs to edited anyway, why not just change the fla so that the audio doesn't start in the first place, and provide a 'play' button to begin the audio for anyone who wants to listen. That would be an easier solution to engineer, and you wouldn't then need to mess about with feeding variables in through the html page.
0
 

Author Comment

by:DaveFrazell
ID: 33691288
Unfortunately I don’t have the .fla source file.  All I have to work with is the .swf file.  So can I edit the .swf file to mute/shutoff/remove the audio or do I need to get a tool to decompile it into a .fla?  The audio on this .swf file cannot be played as we don’t own the rights to it.  I need the easiest solution that will allow me to remove or shutoff the audio.

Thanks - Dave
0
 
LVL 19

Expert Comment

by:quizengine
ID: 33691426
Can you post the swf in the workroom ? Or provide a link to where it is currently running ?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 19

Expert Comment

by:quizengine
ID: 33691465
Sorry - I said 'workroom' - I meant here (too used to working on freelancing websites !)
0
 

Author Comment

by:DaveFrazell
ID: 33691572
I can't.  I don't want to expose my company's use of this audio until we get it fixed.
0
 
LVL 19

Expert Comment

by:quizengine
ID: 33692524
Do you have Flash skills yourself ? If so, use a Flash decompiler (I use sothink swf decompiler - http://www.sothink.com/product/flashdecompiler/index.htm) to make you a fla. Open the fla in Flash and delete any music resources in the library then republish the swf. Doing this 'brute force' fix (just deleting the audio) will probably work as the swf will still try to play the audio but will fail because the audio isn't there anymore. Flash usually fails things like this gracefully, and it doesn't stop the rest of the swf from working.

Or (if you don't want to buy the software, or don't have Flash, or don't have Flash skills) you could post a job on one of the many freelancing websites. I like Elance.com but there are many others. Bear in mind you will *have* to share the info I asked for if you are going to get another person to work on the job. But you can get the person to sign an NDA (non disclosure agreement) to maintain their confidentiality.

Good luck.
0
 
LVL 19

Accepted Solution

by:
quizengine earned 500 total points
ID: 33692787
Hi again. Sorry but I'm an inquisitive sort, and don't have much on this afternoon. I have found the page with the <cough> royal music on.

I've decompiled it and fixed the problem, but didn't want to post the resultant file here for obvious reasons without your permission. I also have your 'parent' website address if you'd rather it went there than on a public forum.
0
 

Author Comment

by:DaveFrazell
ID: 33693086
Can you email it to me?
0
 
LVL 19

Expert Comment

by:quizengine
ID: 33693185
Sure.
0
 

Author Comment

by:DaveFrazell
ID: 33693253
dfrazell@gmail.com
0
 

Author Comment

by:DaveFrazell
ID: 33693450
Thanks for your help.  This totally resolved my issue.
0
 

Author Closing Comment

by:DaveFrazell
ID: 33693453
Thanks again!
0
 
LVL 19

Expert Comment

by:quizengine
ID: 33693464
No problem. Good luck with the acquisition.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question