User Guide
1096 ActionScript classes
Methods inherited from class Object
attachSound (Sound.attachSound method)
public attachSound(id:String) : Void
Attaches the sound specified in the id parameter to the specified Sound object. The sound
must be in the library of the current SWF file and specified for export in the Linkage
Properties dialog box. You must call
Sound.start() to start playing the sound.
To make sure that the sound can be controlled from any scene in the SWF file, place the
sound on the main Timeline of the SWF file.
Availability: ActionScript 1.0; Flash Player 5
Parameters
id:String - The identifier of an exported sound in the library. The identifier is located in the
Linkage Properties dialog box.
setTransform(transfo
rmObject:Object) :
Void
Sets the sound transform (or balance) information, for
a Sound object.
setVolume(value:Numb
er) : Void
Sets the volume for the Sound object.
start([secondOffset:
Number],
[loops:Number]) :
Void
Starts playing the last attached sound from the
beginning if no parameter is specified, or starting at
the point in the sound specified by the secondOffset
parameter.
stop([linkageID:Stri
ng]) : Void
Stops all sounds currently playing if no parameter is
specified, or just the sound specified in the idName
parameter.
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)
Modifiers Signature Description