370
Examples
The following statement sets the
hilite
property of the button cast member named Enter Bid
to
TRUE
:
member("Enter Bid").hilite = TRUE
This statement puts the name of sound cast member 132 into the variable
soundName
:
put member(132, "Viva Las Vegas").name
This statement checks the type of member Jefferson Portrait in the castLib Presidents:
memberType = member("Jefferson Portrait", "Presidents").type
This statement determines whether cast member 9 has a name assigned:
if member(9).name = EMPTY then exit
You can check for the existence of a member by testing for its number:
memberCheck = member("Epiphany").number
if memberCheck = -1 then alert "Sorry, that member doesn’t exist"
Alternatively, you can check for the existence of a member by testing for its type:
memberCheck = member("Epiphany").type
if memberCheck = #empty then alert "Sorry, that member doesn’t exist"
See also
memberNum
member (sound property)
Syntax
sound(
channelNum
).member
the member of sound(
channelNum
)
Description
This read-only property is the sound cast member currently playing in sound channel
channelNum
. This property returns null if no sound is being played.
Example
This statement displays the name of the member of the sound playing in sound channel 2 in the
message window:
put sound(2).member
-- (member 4 of castLib 1)
See also
getPlaylist()
,
queue()
member (sprite property)
Syntax
sprite(
whichSprite
).member
the member of sprite
whichSprite
Description
Sprite property; specifies a sprite’s cast member and cast.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...