User Guide
productName 937
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
preLoadBuffer or play command
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(), newModelResource
productName
Usage
-- Lingo syntax
_player.productName
// JavaScript syntax
_player.productName;
Description
Player property; returns the name of the Director application. Read-only.