Solved

Adobe Flash Mute Audio On Page Load

Posted on 2010-09-15
13
449 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
 
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now