[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Muting all event sounds in Macromedia Flash MX

A developer has created a Flash presentation for us using Macromedia Flash MX. It is about 3 minutes long and consists of numerous scenes, each of which has its own separate narration file. The project is done except for one unresolved issue.

We requested that a sound on/off button be added to the presentation so users could turn the narration off at any time. The developer responded by saying, "If we do that each audio file would have to be programmed separately, and we still would not be able to guarantee that it would work correctly. This is a problem with the software that we have created the presentation in." My suspicion is that the developer doesn't know everything there is to know about Macromedia Flash MX, but I am not a Flash expert so I don't really know.

I have two questions: (1) Is it possible to add a global sound toggle-switch to the presentation, even though as I understand it the narration consists of a series of event sounds? (2) If so, what instructions can I give the developer? (The URL of a page in an online reference guide? Actual code and programming guidelines?)

To view the presentation, go to: http://www.mouseover-media.com/work/FMFC.html 

Eric Dahl
0
ericlewisdahl
Asked:
ericlewisdahl
  • 3
  • 2
1 Solution
 
CerfCommented:
Hello Eric,

Ok, I saw your presentation there should be NO PROBLEM AT ALL having all the sounds muted. Indeed they will need to program each sound separatedly, but that is not a big deal. Tell them to use the sound object to control all the sounds using actionscript and if you need any help with that let me know and I'll point you to the right direction and help you solve doubts.

Cërf.
0
 
BillystyxCommented:
1.In the librayr give your sounds linkage names
2.On the main timeline, add this code
MySoundArr=[];
mySound1 = new Sound();
mySound1.attachSound("Libsound1");//where libsound1 is the linkage identifier for the first sound
mySoundArr.push(mySound1);

Then, when you are ready to start playing each clip, it can be done with
mySoundArr.start();

or if all sound clips start at once
for(i=0;i<_root.MySoundArr.length;i++){
_root[_root.MySoundArr[i]].start();
}

and to stop or pause all at once you can either use:
for(i=0;i<_root.MySoundArr.length;i++){
_root[_root.MySoundArr[i]].stop();
}

or preferably, since you may want to start it again in sync with movie (so you missing some narration but the show goes on)

for(i=0;i<_root.MySoundArr.length;i++){
_root[_root.MySoundArr[i]].setVolume(0);
}
and then when you want it turned up again...
for(i=0;i<_root.MySoundArr.length;i++){
_root[_root.MySoundArr[i]].setVolume(100);
}



Billystyx

0
 
ericlewisdahlAuthor Commented:
I have forwarded your response to the developer. I will let you know whether they are able to implement it successfully. If they need additional guidance, is there a way they can contact you directly? (They are not a member of Experts Exchange.)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
CerfCommented:
Alright, my advice is that you suggest them to open an account at experts exchange, since it is the only way we can help.
--------
Back to the question, you can also load external mp3 individually by using loadSound

my_sound.loadSound("url", isStreaming)

Cërf.
0
 
BillystyxCommented:
how did it go with the developer?
0
 
CerfCommented:
Yeah, were you able to get the results you wanted in your presentation?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now