Modifiers
Signature
setTransform(transfo
rmObject:Object) :
Void
setVolume(value:Numb
er) : Void
start([secondOffset:
Number],
[loops:Number]) :
Void
stop([linkageID:Stri
ng]) : Void
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
attachSound (Sound.attachSound method)
public attachSound(id:String) : Void
Attaches the sound specified in the
must be in the library of the current SWF file and specified for export in the Linkage
Properties dialog box. You must call
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
- The identifier of an exported sound in the library. The identifier is located in the
id:String
Linkage Properties dialog box.
1096
ActionScript classes
Description
Sets the sound transform (or balance) information, for
a Sound object.
Sets the volume for the Sound object.
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.
Stops all sounds currently playing if no parameter is
specified, or just the sound specified in the idName
parameter.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
parameter to the specified Sound object. The sound
id
Sound.start()
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
to start playing the sound.
valueOf
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?
Questions and answers