PDA

View Full Version : Please help on my 1st site w/ sound!!!



CommitteeEnt
10 Dec 2007, 03:21 AM
Whusts up guys, Im gonna just get straight to the point...We run a entertainment comany and i just put up our web-site..I got the template from templatemonster or some site like that and I have couple of questions

...here is my site http://www.committeeentertainment.com

1) How do I make the sound work when I add the flash site to dreamweaver..it works when i test the movie in macromedia flash but does not read it on dreamweaver...do i need to add the song to the server? and than how do i still have it play from there?

here is the script from flash--->

var numtrack = 1;
var maxTracks = 3;
my_sound = new Sound();
my_sound.loadSound("music/track1.mp3", false);
//
my_sound.onLoad = function(ok) {
if (ok) {
clearInterval(interval);
this.start();
tf_txt.text = "TRACK"+numtrack;
}
};
function loader(sound) {
var gbl = sound.getBytesLoaded();
var gbt = sound.getBytesTotal();
tf_txt.text = int(gbl/gbt*100)+"%";
}
my_sound.onSoundComplete = function() {
my_sound.start();
};
interval = setInterval(loader, 100, my_sound);
//
// player controls
btnNext.onRelease = function() {
numtrack++;
if (numtrack == maxTracks+1) {
numtrack = 1;
}
my_sound.loadSound("music/track"+numtrack+".mp3", false);
interval = setInterval(loader, 100, my_sound);
trace(numtrack);
};
btnPrev.onRelease = function() {
numtrack--;
if (numtrack == 0) {
numtrack = 3;
}
my_sound.loadSound("music/track"+numtrack+".mp3", false);
interval = setInterval(loader, 100, my_sound);
trace(numtrack);
};
btnStop.onRelease = function() {
my_sound.stop();
};
btnPlay.onRelease = function() {
my_sound.stop();
my_sound.start();
};
my_sound.start();


I uploaded the file to the server and do i have to change the links to it where it says....my_sound.loadSound("music/track1.mp3", false);
//? is it supposed to say "false" after those link or "true"...please help my company is busing my balls cuz i cant figure out the sound...THANKS!!!