FLASH WEBSITE BACKGROUND ISSUE
Project ID: 1248297778
Project Details
- Status: Closed (Cancelled)
- Posted: 7/22/2009 at 17:22 EST
- Cancelled: 8/13/2009 at 15:12 EST
- Project Creator: (No Feedback Yet)
- Budget: $10
- Description: Hi guys!! I have a flash page where there is background music. The background music is controlled by a button (on/off). It works great but when I want to hear a video clip in one of the web pages, I turn off the background music but it also turns off the video clip audio. So for now I removed the video clip(s). But when I'm ready to add them back, I need to know what to do to cause the background music to stop when I trigger a new clip (audio or video) to play.
Any suggestions Please help.
The code for the background music is:
onClipEvent(load)
{
_root.soundstatus="on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume=100;
minvolume=0;
}
onClipEvent(enterFrame)
{
if(_root.soundstatus=="on") {step=5}
if(_root.soundstatus=="off") {step=-5}
maxvolume+=step;
if (maxvolume>100) {maxvolume=100;}
if (maxvolume<0) {maxvolume=0;}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
} - Tags:
| Project Bids |
| Programmer | Bid |
Delivery Time | Time of Bid | Rating | |
| revolutionfx | $10 | Immediately | 7/22/2009 at 17:51 EST | (10 reviews) |
|
| Hi. Please check PMB. Thanks. | |||||
| ivillagewebstudio | $10 | Immediately | 7/23/2009 at 0:39 EST | (68 reviews) |
|
| please check pmb for morre details | |||||






