Flash Player 6.
my_sound.loadSound(url:String,isStreaming:Boolean): Void
url The location on a server of an MP3 sound file.
isStreaming A Boolean value that indicates whether the sound is a streaming sound (true) or an event sound (false).
Nothing.
Method; loads an MP3 file into a Sound object. You can use the isStreaming parameter to indicate whether the sound is an event or a streaming sound.
Event sounds are completely loaded before they play. They are managed by the ActionScript Sound class and respond to all methods and properties of this class.
Streaming sounds play while they are downloading. Playback begins when sufficient data has been received to start the decompressor. For more information, see "Working with Sound" in Using Flash.
All MP3s (event or streaming) loaded with this method are saved in the browser's file cache on the user's system.
The following example loads an event sound, which cannot play until it is fully loaded:
var my_sound:Sound = new Sound();
my_sound.loadSound("song1.mp3", false);
The following example loads a streaming sound:
var my_sound:Sound = new Sound();
my_sound.loadSound("song1.mp3", true);
Sound.onLoad
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001680.html
Comments
recoveredfromflashMX2004 said on Aug 4, 2004 at 4:21 PM : LiangShu said on Oct 21, 2004 at 4:30 AM : bahj said on Dec 7, 2004 at 2:48 PM : Alexander Palmo said on Dec 28, 2004 at 12:50 PM : glenn_a_m said on Mar 13, 2005 at 9:15 PM : No screen name said on Jul 24, 2005 at 6:36 AM : No screen name said on Jul 28, 2005 at 5:47 AM : Joe.DaCoda said on Aug 30, 2005 at 6:42 PM : jpsarracco said on Sep 2, 2005 at 3:02 PM :