Jump to content

[SOLVED] Php playing sound in background. help please.


Orionsbelter

Recommended Posts

You flash actionscript could look like this:

 

// create a new Sound object
var my_sound:Sound = new Sound();
// if the sound loads, play it; if not, trace failure loading
my_sound.onLoad = function(success:Boolean) {
     if (success) {
          my_sound.start();
          status_txt.text = "Sound loaded";
     } else {
          status_txt.text = "Sound failed";
     }
};
// load the sound
my_sound.loadSound("http://mysite.com/audio/song.mp3", true);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.