Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why won't this sound play?

Status
Not open for further replies.

unomateo

IS-IT--Management
May 9, 2006
38
US
I have this mp3 plays, but i cannot get it to play with flash.

I have a simple 1 frame swf with this code:

Code:
//load audio, stream then loop
var my_sound:Sound = new Sound();
my_sound.loadSound("[URL unfurl="true"]http://smartlegacy.com/ohsnap.mp3",[/URL] true);
my_sound.onSoundComplete = function() {
my_sound.start(0,1);
}

It will not play? I have no idea why?
I'm using flash 8
 
Actually, this is the code, I do not need the function.

Code:
//load audio, stream then loop
var my_sound:Sound = new Sound();
my_sound.loadSound("[URL unfurl="true"]http://smartlegacy.com/ohsnap.mp3",[/URL] true);
my_sound.start(0,1);
 
no, I just have one movie, and the code in in the only frame?

do I need to add this to a movie in the main movie?
 
No.

Maybe you can't remotely access that sound file on that server... 'Cause if I use your script and link to one of my own .mp3 on my server it works fine...

BTW, my_sound.start(0,1); is useless, since you're loading a streaming sound, and it'll start on it's own, when enough has buffered.

Regards. FLASH HELP - OPENED FOR BUSINESS!
TO GET YOUR OWN FREE WEBSITE HOSTING
 
The MP3 I was using was bad...it worked would play, but then I looked at the properties of the mp3 and the bitrate was 0?

I made it with wondows sound recorder. Then I re-saved it with audacity and it then had a bit rate of 128.

The flash works fine.

What a pain!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top