mergeDisplayTemplate()
395
castNameOrNum
Optional. A string that specifies the cast library name to which the member
belongs, or an integer that specifies the index position of the cast library to which the member
belongs. If omitted,
member()
searches all cast libraries until a match is found.
Example
This statements sets the variable
memWings
to the cast member named Planes, which is in the cast
library named Transportation.
-- Lingo syntax
memWings = member("Planes", "Transportation")
// JavaScript syntax
var memWings = member("Planes", "Transportation");
See also
Member
,
Sprite
,
spriteNum
mergeDisplayTemplate()
Usage
-- Lingo syntax
_movie.mergeDisplayTemplate(
propList
)
// JavaScript syntax
_movie.mergeDisplayTemplate(
propList
);
Description
Movie method; merges an arbitrary number of display template properties into the existing set of
display template properties all at once.
Parameters
propList
Required. A property list that contains the display template properties to merge into
the existing set of display template properties. In Lingo,
propList
can be either a comma-
separated list of name/value pairs or a comma-separated list of symbol/value pairs. In JavaScript
syntax,
propList
can only be a comma-separated list of name/value pairs.
Example
This statement merges a value for the
title
property into the
displayTemplate
:
-- Lingo syntax
_movie.mergeDisplayTemplate(propList(#title, "Welcome!"))
// JavaScript syntax
_movie.mergeDisplayTemplate(propList("title", "Welcome!"))
See also
appearanceOptions
,
displayTemplate
,
Movie
,
propList()
,
titlebarOptions
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...