|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.sound.StartSound2
public final class StartSound2
StartSound2 instructs the player to start or stop playing a sound. It extends
the functionality of StartSound
by specifying the Actionscript 3
class that is used to generate the sound.
DefineSound
,
SoundInfo
Constructor Summary | |
---|---|
StartSound2(SoundInfo aSound)
Creates a StartSound object with an Sound object that identifies the sound and controls how it is played. |
|
StartSound2(StartSound2 object)
Creates and initialises a StartSound2 object using the values copied from another StartSound2 object. |
|
StartSound2(SWFDecoder coder)
Creates and initialises a StartSound2 object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
StartSound2 |
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. |
String |
getSoundClass()
gets the name of Actionscript 3 class that contains the sound. |
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. |
void |
setSoundClass(String className)
Set the name of the Actionscript 3 class that contains the sound. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StartSound2(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public StartSound2(SoundInfo aSound)
aSound
- the Sound object. Must not be null.public StartSound2(StartSound2 object)
object
- a StartSound2 object from which the values will be
copied.Method Detail |
---|
public String getSoundClass()
public SoundInfo getSound()
public void setSoundClass(String className)
className
- the name of the Actionscript 3 class that provides the
sound.public void setSound(SoundInfo aSound)
aSound
- the Sound object that controls how the sound is played. Must
not be null.public StartSound2 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 |