EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 395

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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