JohnyVagabond
October 13th, 2002, 06:09 PM
Hi,
Dynamically loading mp3's
I am currently tearing my hair out trying to get this thing to work.
I have 10 buttons, 1 stop and the others track 01 - 09, these are all in one .swf file.
The buttons are all on one layer, on another i have defined all my sounds like so :
firstSound = new Sound();
firstSound.loadSound("track 01.mp3");
through to
ninthSound = new Sound();
ninthSound.loadSound("track 09.mp3");
Then i have the actions for my buttons
on (press) {
//Track 01 Button
stopAllSounds();
firstSound.loadsound("track 01.mp3");
firstSound.start(0,999);
}
through to
on (press) {
//Track 09 Button
stopAllSounds();
ninthSound.loadsound("track 09.mp3");
ninthSound.start(0,999);
}
I have uploaded the 9 mp3's, the swf & html file to same folder and this is what happens :
http://www.nrgdesigns.net/bgsounds/buttonstest.html
When any of the 9 track buttons are pressed 7 of the nine mp3's download all at the same time from pressing 1 single button:q: (no track 3 or 9 which play fine normally and have definitely been uploaded) and none of the sounds work. But, when i refresh the page the 7 mp3's that were downloaded now work :q: . The stop all sounds still work on buttons 3 & 9. On my friends comp he dl's the same 7 tracks but they don't even play at all for him
:q:
Can anyone help me Plzzzzzzzzzzzzzzzzzzzzzzzzzz
Dynamically loading mp3's
I am currently tearing my hair out trying to get this thing to work.
I have 10 buttons, 1 stop and the others track 01 - 09, these are all in one .swf file.
The buttons are all on one layer, on another i have defined all my sounds like so :
firstSound = new Sound();
firstSound.loadSound("track 01.mp3");
through to
ninthSound = new Sound();
ninthSound.loadSound("track 09.mp3");
Then i have the actions for my buttons
on (press) {
//Track 01 Button
stopAllSounds();
firstSound.loadsound("track 01.mp3");
firstSound.start(0,999);
}
through to
on (press) {
//Track 09 Button
stopAllSounds();
ninthSound.loadsound("track 09.mp3");
ninthSound.start(0,999);
}
I have uploaded the 9 mp3's, the swf & html file to same folder and this is what happens :
http://www.nrgdesigns.net/bgsounds/buttonstest.html
When any of the 9 track buttons are pressed 7 of the nine mp3's download all at the same time from pressing 1 single button:q: (no track 3 or 9 which play fine normally and have definitely been uploaded) and none of the sounds work. But, when i refresh the page the 7 mp3's that were downloaded now work :q: . The stop all sounds still work on buttons 3 & 9. On my friends comp he dl's the same 7 tracks but they don't even play at all for him
:q:
Can anyone help me Plzzzzzzzzzzzzzzzzzzzzzzzzzz