MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 937

Director scripting reference
Table of Contents

Advertisement

Example
The following handler sets the preload download time for the SWA streaming cast member Louis
Armstrong to 6 seconds. The actual preload occurs when a
is issued.
-- Lingo syntax
on mouseDown
member("Louis Armstrong").stop()
member("Louis Armstrong").preLoadTime = 6
end
// JavaScript syntax
function mouseDown() {
member("Louis Armstrong").stop();
member("Louis Armstrong").preLoadTime = 6;
}
This statement returns the preLoadTime of the currently playing sound in sound channel 1:
-- Lingo syntax
put sound(1).preLoadTime
// JavaScript syntax
trace(sound(1).preLoadTime);
See also
preLoadBuffer()
primitives
Usage
getRendererServices().primitives
Description
3D function; returns a list of the primitive types that can be used to create new model resources.
Example
This statement display the available primitive types:
put getRendererServices().primitives
-- [#sphere, #box, #cylinder, #plane, #particle]
See also
getRendererServices(),
productName
Usage
-- Lingo syntax
_player.productName
// JavaScript syntax
_player.productName;
Description
Player property; returns the name of the Director application. Read-only.
newModelResource
or
preLoadBuffer
play
productName
command
937

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents