Dark Prodigy
Jawbreaker
- Joined
- Mar 10, 2006
- Messages
- 2,803
Doing a small "practice" web site and I'm having a small problem with the sound.
The music is embedded in a small Flash file I wrote with AS 3.0 that is designed to play when the web site is opened. The problem is that while the music starts up normally, I'm getting some sort of "2nd loop".
The music starts but seconds later an echo/reverb begins to happen. If I refresh the page it goes away and plays normally. I do not like this.
here's the AS I wrote for it:
This is the insertion and the mute button I wrote for it. There's only one instance of the song placed inside of the site folder.
Anything look fishy? I can link the web page if you want to hear it for yourself.
The music is embedded in a small Flash file I wrote with AS 3.0 that is designed to play when the web site is opened. The problem is that while the music starts up normally, I'm getting some sort of "2nd loop".
The music starts but seconds later an echo/reverb begins to happen. If I refresh the page it goes away and plays normally. I do not like this.
here's the AS I wrote for it:
Code:
var thissound:URLRequest = new URLRequest("desire.mp3");
var s:Sound = new Sound();
s.load(thissound);
var song:SoundChannel = s.play();
function setMute(vol){
var sTransform:SoundTransform = new SoundTransform(1,0);
sTransform.volume = vol;
SoundMixer.soundTransform = sTransform;
}
var Mute:Boolean = false;
button_mute.addEventListener(MouseEvent.CLICK, togglemute);
function togglemute(event:Event){
if(Mute){
Mute = false;
setMute(1);
}else{
Mute = true;
setMute(0);
}
}
This is the insertion and the mute button I wrote for it. There's only one instance of the song placed inside of the site folder.
Anything look fishy? I can link the web page if you want to hear it for yourself.