User Guide
994 Chapter 14: Properties
For more information about working with extruder model resources and text cast members,
see
extrude3D.
Example
In this example, the cast member Logo is a text cast member. This statement sets the smoothness
of Logo to 8. When Logo is displayed in 3D mode, the edges of its letters will be very smooth.
member("Logo").smoothness = 8
In this example, the model resource of the model Slogan is extruded text. This statement sets the
smoothness of Slogan’s model resource to 1, causing the Slogan’s letters to appear very angular.
member("Scene").model("Slogan").resource.smoothness = 1
See also
extrude3D
sound (Member)
Usage
-- Lingo syntax
memberObjRef.sound
// JavaScript syntax
memberObjRef.sound;
Description
Cast member property; controls whether a movie, digital video, or Flash movie’s sound is enabled
(TRUE, default) or disabled (FALSE). Read/write.
In Flash members, the new setting takes effect after the currently playing sound ends.
To see an example of
sound used in a completed movie, see the Sound Control movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
This handler accepts a member reference and toggles the member’s sound property on or off:
-- Lingo syntax
on ToggleSound(whichMember)
member(whichMember).sound = not(member(whichMember).sound)
end
// JavaScript syntax
function ToggleSound(whichMember) {
member(whichMember).sound = !(member(whichMember).sound);
}
See also
Flash Movie