The Flash Player 8 Security-Related API white paper at http://www.macromedia.com/go/
fp8_security_apis
Availability: ActionScript 1.0; Flash Player 6
Parameters
- The location on a server of an MP3 sound file.
url:String
isStreaming:Boolean
sound (
) or an event sound (
true
Example
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);
See also
onLoad (Sound.onLoad handler)
onID3 (Sound.onID3 handler)
onID3 = function() {}
Invoked each time new ID3 data is available for an MP3 file that you load using
Sound.attachSound()
without polling. If both ID3 1.0 and ID3 2.0 tags are present in a file, this handler is called
twice.
Availability: ActionScript 1.0; Flash Player 7
Example
The following example displays the ID3 properties of
DataGrid component. Add a DataGrid with the instance name
and add the following ActionScript to your FLA or AS file:
import mx.controls.gridclasses.DataGridColumn;
var id3_dg:mx.controls.DataGrid;
id3_dg.move(0, 0);
id3_dg.setSize(Stage.width, Stage.height);
var property_dgc:DataGridColumn = id3_dg.addColumn(new
DataGridColumn("property"));
- A Boolean value that indicates whether the sound is a streaming
).
false
or
Sound.loadSound()
. This handler provides access to ID3 data
to an instance of the
song1.mp3
id3_dg
to your document,
Sound
1109
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?