|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.sound.StartSound
public final class StartSound
StartSound instructs the player to start or stop playing a sound defined using the DefineSound class.
StartSound contains a SoundInfo object that defines how the sound fades in and out, whether it is repeated as well as specifying an envelope that provides a finer degree of control over the levels at which the sound is played.
DefineSound
,
SoundInfo
Constructor Summary | |
---|---|
StartSound(SoundInfo aSound)
Creates a StartSound object with an Sound object that identifies the sound and controls how it is played. |
|
StartSound(StartSound object)
Creates and initialises a StartSound object using the values copied from another StartSound object. |
|
StartSound(SWFDecoder coder)
Creates and initialises a StartSound object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
StartSound |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
SoundInfo |
getSound()
Get the Sound object describing how the sound will be played. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setSound(SoundInfo aSound)
Sets the Sound object that describes how the sound will be played. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StartSound(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public StartSound(SoundInfo aSound)
aSound
- the Sound object. Must not be null.public StartSound(StartSound object)
object
- a StartSound object from which the values will be
copied.Method Detail |
---|
public SoundInfo getSound()
public void setSound(SoundInfo aSound)
aSound
- the Sound object that controls how the sound is played. Must
not be null.public StartSound copy()
copy
in interface Copyable<MovieTag>
public String toString()
toString
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder, Context context) throws IOException
encode
in interface SWFEncodeable
coder
- an SWFEncoder object.context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException
- if an error occurs while encoding the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |