Solved

Adobe Flash Mute Audio On Page Load

Posted on 2010-09-15
13
464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Updating Flash Player with GPO 3 362
Win XP's Chrome V27.0.1453.110 laptop gives blank/dark screen when playing 3 68
Flash Converter 8 137
black magic design 1 131
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…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

756 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