MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 1095

Actionscript 2.0 language reference
Table of Contents

Advertisement

Event summary
Event
Description
Invoked each time new ID3 data is available for an MP3 file that you load
onID3
=
using Sound.attachSound() or Sound.loadSound().
function() {}
Invoked automatically when a sound loads.
onLoad
=
function(success
:Boolean) {}
Invoked automatically when a sound finishes playing.
onSoundComplete
= function() {}
Constructor summary
Signature
Sound([target:Object
])
Method summary
Modifiers
Signature
attachSound(id:Strin
g) : Void
getBytesLoaded() :
Number
getBytesTotal() :
Number
getPan() : Number
getTransform() :
Object
getVolume() : Number
loadSound(url:String
,
isStreaming:Boolean)
: Void
setPan(value:Number)
: Void
Description
Creates a new Sound object for a specified movie clip.
Description
Attaches the sound specified in the id parameter to
the specified Sound object.
Returns the number of bytes loaded (streamed) for
the specified Sound object.
Returns the size, in bytes, of the specified Sound
object.
Returns the pan level set in the last setPan() call as
an integer from -100 (left) to +100 (right).
Returns the sound transform information for the
specified Sound object set with the last
Sound.setTransform() call.
Returns the sound volume level as an integer from 0
to 100, where 0 is off and 100 is full volume.
Loads an MP3 file into a Sound object.
Determines how the sound is played in the left and
right channels (speakers).
Sound 1095

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents