hi i have an mp3 player on my page and when someone visits the site for the first time, the song starts playing. how do i stop the mp3 from playing right away but it still continue to load? Additiaonlly I also have other songs so when someone clicks on the control i have, i would like it to mute the previous song. from the code below, what do i have to add for the song to be muted when the website is first visted
stopAllSounds();
fscommand("allowscale", "false");
dd = new Sound();
dd.loadSound("http://www.mysite.com/audoi/audiofile", true);
xx = bar._width;
orginal_width = bar._width;
_root.soundbtndis._visible = false;
_root.soundbtndis.disabled = true;
this.onEnterFrame = function() {
t1 = int(dd.duration/1000/60);
t1 = t1+" : "+int((dd.duration/1000-(t1*60)));
ddf = int((dd.duration-dd.position)/1000/60);
elapsed_sec = int((((dd.duration-dd.position)/1000/60)-ddf)*60);
if (elapsed_sec<10) {
elapsed_sec = "0"+elapsed_sec;
}
if (ddf<10) {
ddf = "0"+ddf;
}
if (_root.stpd) {
elapsed = _root.t1;
} else {
elapsed = ddf+" : "+elapsed_sec;
}
//mo=dd.position/1000
//elapsed =
vol = dd.getVolume()+" %";
dur = dd.duration;
pos = dd.position;
per = (pos/dur)*100;
m = (pos/dur)*100;
bar._width = (m*xx)/100;
drag._x = _root.bar._width+_root.bar._x;
//drag._y = 136;
if (stpd) {
xx = 0;
} else {
xx = orginal_width;
}
// function keys
if (Key.isDown(67)) {
pauseit();
}
if (Key.isDown(88)) {
playit();
}
if (Key.isDown(86)) {
stopit();
}
//**************************************
};
_root.shorba.art = "Artist :"+dd.id3.artist;
_root.shorba.song = "Title :"+dd.id3.songname;
_root.shorba.setMask(_root.loo7);
_root.information.setMask(_root.infomask);