previous chapter contents page top page next chapter

SoundButton

inherits from Button
encodes empty field list

Class Description

Sound buttons are the buttons in the control panel that allow the user to change the noises made when certain events take place. When the user drops the magic sound coupon on the swallow sound button, for example, the indexical iSwallowSound will be changed to point to the sound Magic instead of Shlurp.

Remember that if the documentation and the software (especially the definition files) disagree, always trust the software.

Programming information

Instantiate: sometimes
Subclass: rarely
Call its methods: rarely

You are a very silly person indeed if you are subclassing class SoundButton.

Methods defined by class SoundButton

Class SoundButton defines the following methods:

Method Description
SetSound Set the sound indexical this button stands for to the new sound

Fields defined by class SoundButton

Class SoundButton defines the following fields:

Field Type Description
Inherited from SingleLinkable
next Object Next item in view list
Inherited from Linkable
previous Object Previous item in view list
Inherited from Viewable
superview Viewable Container for this object
subview Viewable Object contained by this object
relativeOrigin Dot Origin relative to superview
contentSize Dot Size of content rectangle
viewFlags Unsigned Property settings
labelStyle TextStyle Text style of object's label
color Unsigned Color of object's content
altColor Unsigned Not used by button
shadow Shadow Shadow drawn with object
sound Sound Sound associated with object
Inherited from Stamp
image Image Image used to draw stamp
Inherited from HasBorder
border Border The button's border