992
Chapter 14: Properties
Example
In this example, mrFount is a model resource of the type
#particle
. This statement sets the
sizeRange
properties of mrFount. The first line sets the start value to 4, and the second line sets
the end value to 1. The effect of this statement is that the particles of mrFount are size 4 when
they first appear, and gradually shrink to a size of 1 during their lifetime.
member("fountain").modelResource("mrFount").sizeRange.start = 4
member("fountain").modelResource("mrFount").sizeRange.end = 1
sizeState
Usage
-- Lingo syntax
windowObjRef
.sizeState
// JavaScript syntax
windowObjRef
.sizeState;
Description
Window property; returns the size state of a window. Read-only.
The returned size state will be one of the following values:
Example
These statements maximize the window named Artists if it is not already maximized.
-- Lingo syntax
if (window("Artists").sizeState <> #maximized) then
window("Artists").maximize()
end if
// JavaScript syntax
if (window("Artists").sizeState != symbol("maximized")) {
window("Artists").maximize();
}
See also
Window
Size state
Description
#minimized
Specifies that the window is currently minimized.
#maximized
Specifies that the window is currently maximized.
#normal
Specifies that the window is currently neither minimized nor maximized.
Содержание 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...