[help] Flash Sound

Hey all, I have a start and stop button that stops and starts a mp3 that i made in flash, works fine however when using the flash file in my website when a different link is clicked the mp3 starts over and plays from the begining.

How do i get the sound to continusly play in my website no matter what link is clicked. I am using a dreamweaver template. I created the original template inside of dreamweaver

with the flash file inside and then based my pages off of the template.

but when a different link is clicked within my site my flash sound starts over I dont want it to start over just want it to play through the entire time.

thanx for any help tutorial links. :)

#297640

I have had this problem before, i'm not exactly sure how to solve it but in the properties window of the sound, there is a Sync: Section. You can choose either Event, Start, Stop and Stream. I think selecting Stream will solve your problem. Just try one of the four untill your problem is solved. You can also choose to Repeat the Sound or Loop the Sound.

Hope that helps.

#297681

Hello ReidMedia yeah i tried that and it did not work here is my action script code for the buttons. I got it from another forum. thanx for any help

this.createEmptyMovieClip("sound_mc", 10);

music = new Sound(sound_mc);

music.attachSound("Oh.mp3", true);

music.start();

active_button = "play";

// pause button

pause_button_mc.onRelease = function() {

if (active_button == "play") {

pause_resume = music.position;

music.stop();

active_button = "pause";

}

}

var mysound:Sound = new Sound();

mysound.attachSound("beep");

var onpress:Sound = new Sound() ;

onpress.attachSound("beep2");

mytext.onRollOver = function(){

this._alpha = 50;

}

pause_button_mc.onRollOver = function() {

this._alpha = 50;

mysound.start();

}

mytext.onRollOut = function() {

this._alpha = 100;

}

pause_button_mc.onRollOut = function() {

this._alpha =100;

}

pause_button_mc.onPress = function() {

onpress.start();

}

// play button

play_button_mc.onRelease = function() {

if (active_button == "pause") {

music.start(pause_resume / 1000);

active_button = "play";

}

}

play_button_mc.onRollOver = function() {

this._alpha = 50;

mysound.start();

}

play_button_mc.onRollOut = function() {

this._alpha = 100;

}

play_button_mc.onPress = function() {

onpress.start();

}

#297702