Hello!
I'm having some trouble with mp3s in a flash site. ([url]www.thejunglegroove.com[/url])
There is a page with four songs, but it's not always possible listen to
them. I don't know why it works sometimes yes and sometimes not.
I write the following code in action script, and I put the songs files
outside the .swf.
Please, let me know what you think about it, if you notice anything wrong.

riproduzione1=true;
riproduzione2=true;
riproduzione3=true;
riproduzione4=true;

s1 = new Sound();
s2 = new Sound();
s3= new Sound();
s4= new Sound();
s1.loadSound("http://www.thejunglegroove.com/song1.mp3",false);
s2.loadSound("http://www.thejunglegroove.com/song2.mp3",false);
s3.loadSound("http://www.thejunglegroove.com/song3.mp3",false);
s4.loadSound("http://www.thejunglegroove.com/song4.mp3",false);
pulsante1.onRelease=function(){
if(riproduzione1){
s1.start(0,999);
s2.stop();
s3.stop();
s4.stop();
riproduzione1 = false;
riproduzione2 = true;
riproduzione3=true;
riproduzione4=true;
testo="1 Song";
}
};
pulsante2.onRelease=function(){
if(riproduzione2){
s2.start(0,999);
s1.stop();
s3.stop();
s4.stop();
riproduzione2 = false;
riproduzione1 = true;
riproduzione3=true;
riproduzione4=true;
testo="2 Song";
}
};
pulsante3.onRelease=function(){
if(riproduzione3){
s3.start(0,999);
s1.stop();
s2.stop();
s4.stop();
riproduzione3=false;
riproduzione2 = true;
riproduzione1 = true;
riproduzione4=true;
testo="3 Song";
}
};
pulsante4.onRelease=function(){
if(riproduzione3){
s4.start(0,999);
s1.stop();
s2.stop();
s3.stop();
riproduzione4=false;
riproduzione2 = true;
riproduzione1 = true;
riproduzione3=true;
testo="4 Song";
}
};

ferma1.onRelease=function(){
s1.stop();
riproduzione1 = true;
testo="";
};

ferma2.onRelease=function(){
s2.stop();
riproduzione2 = true;
testo="";
};

ferma3.onRelease=function(){
s3.stop();
riproduzione3 = true;
testo="";
};

ferma4.onRelease=function(){
s4.stop();
riproduzione4 = true;
testo="";
};


Bye,
Roberta



________________________
[url]www.wint.it[/url]