User Guide
279
Shockwave movies playing on the Internet cannot access global variables within other movies,
even movies playing on the same HTML page. The only way movies can share global variables is
if an embedded movie navigates to another movie and replaces itself through either
goToNetMovie or go movie.
Example
The following example sets the global variable StartingPoint to an initial value of 1 if it doesn’t
already contain a value. This allows navigation to and from the movie without loss of stored data.
global gStartingPoint
on prepareMovie
if voidP(gStartingPoint) then gStartingPoint = 1
end
See also
showGlobals, property, gotoNetMovie
globals
Syntax
the globals
Description
System property; this property contains a special property list of all current global variables with a
value other than
VOID. Each global variable is a property in the list, with the associated paired value.
You can use the following list operations on
globals:
• count()—Returns the number of entries in the list.
• getPropAt(n)—Returns the name of the nth entry.
• getProp(x)—Returns the value of an entry with the specified name.
• getAProp(x)—Returns the value of an entry with the specified name.
Note: The globals property automatically contains the property #version, which is the version of Director running.
This means there will always be at least one entry in the list, even if no global variables have been declared yet.
This property differs from showGlobals in that the globals can be used in contexts other than
the Message window. To display
the globals in the Message window, use showGlobals.
See also
showGlobals, clearGlobals
glossMap
Syntax
member(whichCastmember).shader(whichShader).glossMap
member(whichCastmember).model(whichModel).shader.glossMap
member(whichCastmember).model(whichModel).shaderList{[index]}.\
glossMap
Description
3D #standard shader property; specifies the texture to use for gloss mapping.