Eden
10-4-05, 10:38 PM
Hey everyone, I'm trying to place a small background loop on my page that you can turn off. I found this one http://www.flashkit.com/movies/Sound/Controls/Sound_pl-Photius_-8312/index.php which I have modified the look which I am happy with but I can't seem to get the sound working properly. The comment "Add music track to each of the first 4 frames and call those frames first to play" makes no sense to me whatsoever and I've tried emailing the maker but no response. The track I'm trying to add is 4 seconds long that I want to just keep looping unless the user turns off with the button and all I can get this thing to do is start but then it keeps adding on top of itself so it is not enjoyable to listen to (hope that made sense) and it will only stop after after clicking TWICE. Also I can't get this annoying click sound out of there.
The code Actions for Frame 1
status_btn.onPress = function() {
if (status_var == "ON") {
status_var = "OFF";
stopAllSounds();
stop();
} else {
status_var = "ON"
play();
};
};
I have tried adding the clip (which I've added to the library) to this code somehow but that didn't do anything. (didn't expect it to but was worth a shot)
There isn't anymore code in this file just layers (bar1, bar2, layer4, layer5, layer6, layer7, layer8, and button) but playing with those I've found it is just the bars :confused:
Sorry I can't really explain more than this I just need to figure out where to put the sound clip and would appreciate any help I can get. I have no experience with Flash at all (I'm using Flash MX btw). If you need more info let me know. If you know of a nicer, easier one to use that would be great also ;)
The code Actions for Frame 1
status_btn.onPress = function() {
if (status_var == "ON") {
status_var = "OFF";
stopAllSounds();
stop();
} else {
status_var = "ON"
play();
};
};
I have tried adding the clip (which I've added to the library) to this code somehow but that didn't do anything. (didn't expect it to but was worth a shot)
There isn't anymore code in this file just layers (bar1, bar2, layer4, layer5, layer6, layer7, layer8, and button) but playing with those I've found it is just the bars :confused:
Sorry I can't really explain more than this I just need to figure out where to put the sound clip and would appreciate any help I can get. I have no experience with Flash at all (I'm using Flash MX btw). If you need more info let me know. If you know of a nicer, easier one to use that would be great also ;)