EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 937

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...
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.