Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adobe Flash Mute Audio On Page Load

Posted on 2010-09-15
13
Medium Priority
?
475 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
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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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 how to load their YouTube profile onto Flash Media Live Encoder.
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.
Suggested Courses

927 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