Should I embedded a swf file in html page in order to solve this problem?
I am having a problem getting a background sound to play in all the web browsers.
Actually what I would like to do is a sound should be played auotmatically once a web page is loaded without clicking on anything to play the sound. I have used the <BGSOUND> tag and this is only works fine in IE, not for other web browsers. So to solve the problem, I have tried a way which is imported the sound in flash and save as swf file then embedded the swf file in html. So could I use this way to do it or is there any way beside this?
Well, if all you're doing is creating a swf file to play this audio, then you'll only need one frame in your swf. So just put it all right there. You shouldn't need any more code than that.
Well, if all you're doing is creating a swf file to play this audio, then you'll only need one frame in your swf. So just put it all right there. You shouldn't need any more code than that.
I have tried it but nothing is played. Maybe you could help me out by checking my working file.
Hmm. It worked fine for me when I opened the html file. Are you sure your speakers are on? You can import the sound into flash and have it play that way, however the entire file will have to download before it will play, which really isn't that big of a deal in this case. When you said 'background sound' I just assumed you meant some kind of ambient sound and that the file size would be fairly large, but the sound you're using is pretty small so it shouldn't make a difference. That's what I get for assuming. However, if you can't hear the sound now, it may not work for you that way either. I'm really not sure what the problem is at this point, since I had no problems with it on my machine.
Hmm. It worked fine for me when I opened the html file. Are you sure your speakers are on? You can import the sound into flash and have it play that way, however the entire file will have to download before it will play, which really isn't that big of a deal in this case. When you said 'background sound' I just assumed you meant some kind of ambient sound and that the file size would be fairly large, but the sound you're using is pretty small so it shouldn't make a difference. That's what I get for assuming. However, if you can't hear the sound now, it may not work for you that way either. I'm really not sure what the problem is at this point, since I had no problems with it on my machine.
The sound is played if I opened the swf file, but for HTML file is not.
By the way, could you upload again the working file that you have done here?