I have some code to stream a mp3 and a slider to control the volume. It works fine. I put it into another flash file and then it doesn't. My original is in Flash 8, and the new is in MX2004, I figure that this is why I've got the error message. So I converted the MX2004 to F8 and still I get an error message with my code. Now I can't stream this sound, could someone point out my mistake to me? Thank You
Code:
var game_sound:Sound = new Sound();
game_sound.onLoad = function(success:Boolean):Void {
if (success) {
trace("Sound Loaded");
game_sound.start(loops,1000);
game_sound.setVolume(20);
}
};
game_sound.loadSound("atmosphe-PSION-3280_hifi.mp3", false);