Example
This idle handler displays the elapsed time for sound channel 4 in a field on the Stage
during idles:
-- Lingo syntax
on idle
member("time").text = string(sound(4).elapsedTime)
end idle
// JavaScript syntax
function idle() {
member("time").text = sound(4).elapsedTime.toString();
}
See also
currentTime
(Sprite),
emissive
Usage
member(whichCastmember).shader(whichShader).emissive
member(whichCastmember).model(whichModel).shader.emissive
member(whichCastmember).model(whichModel).shaderList{[index]}.\
emissive
Description
3D
shader property; adds light to the shader independently of the lighting in the
#standard
scene. For example, a model using a shader whose
will appear to be illuminated by a white light, even if there are no lights in the scene. The
255)
model will not, however, illuminate any other models or contribute any light to the scene.
The default value for this property is
Example
This statement sets the
Models using this shader will appear to be illuminated by a red light:
member("MysteryWorld").shader("Globe").emissive = rgb(255, 0, 0)
See also
silhouettes
emitter
Usage
member(whichCastmember).modelResource(whichModelResource).\
emitter.numParticles
member(whichCastmember).modelResource(whichModelResource).\
emitter.mode
member(whichCastmember).modelResource(whichModelResource).\
emitter.loop
member(whichCastmember).modelResource(whichModelResource).\
emitter.direction
member(whichCastmember).modelResource(whichModelResource).\
emitter.region
750
Chapter 14: Properties
Sound Channel
rgb(0, 0, 0)
property of the shader named Globe to
emissive
property is set to
emissive
.
rgb(255, 255,
.
rgb(255, 0, 0)
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