916
Chapter 14: Properties
pattern
Usage
member(
whichCastMember
).pattern
the pattern of member
whichCastMember
Description
Cast member property; determines the pattern associated with the specified shape. Possible values
are the numbers that correspond to the swatches in the Tools window’s patterns palette. If the
shape cast member is unfilled, the pattern is applied to the cast member’s outer edge.
This property can be useful in movies with Shockwave content to change images by changing the
tiling applied to a shape, allowing you to save memory required by larger bitmaps.
This property can be tested and set.
Example
The following statements make the shape cast member Target Area a filled shape and assign it
pattern 1, which is a solid color:
member("Target Area").filled = TRUE
member("Target Area").pattern = 1
This handler cycles through eight tiles, with each tile’s number offset from the previous one,
enabling you to create animation using smaller bitmaps:
on exitFrame
currentPat = member("Background Shape").pattern
nextPat = 57 + ((currentPat - 56) mod 8)
member("Background Shape").pattern = nextPat
go the frame
end
pausedAtStart (Flash, Digital video)
Usage
member(
whichFlashOrDigitalVideoMember
).pausedAtStart
the pausedAtStart of member
whichFlashOrDigitalVideoMember
Description
Cast member property; controls whether the digital video or Flash movie plays when it appears on
the Stage. If this property is
TRUE
, the digital video or Flash movie does not play when it appears.
If this property is
FALSE
, it plays immediately when it appears.
For a digital video cast member, the property specifies whether the Paused at Start check box in
the Digital Video Cast Member Properties dialog box is selected or not.
This property can be tested and set.
Example
This statement turns on the Paused at Start check box in the Digital Video Cast Member Info
dialog box for the QuickTime movie Rotating Chair:
member("Rotating Chair").pausedAtStart = TRUE
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...