EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 375

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...
isInWorld() 375
Example
The following statement checks whether a sound is playing in sound channel 1 and loops in the
frame if it is. This allows the sound to finish before the playhead goes to another frame.
-- Lingo syntax
if (sound(1).isBusy()) then
_movie.go(_movie.frame)
end if
// JavaScript syntax
if (sound(1).isBusy()) {
_movie.go(_movie.frame);
}
See also
status, Sound Channel
isInWorld()
Usage
member(whichCastmember).model(whichModel).isInWorld()
member(whichCastmember).camera(whichCamera).isInWorld()
member(whichCastmember).light(whichLight).isInWorld()
member(whichCastmember).group(whichGroup).isInWorld()
Description
3D command; returns a value of TRUE if the parent hierarchy of the model, camera, light, or
group terminates in the world. If the value of
isInWorld is TRUE, the model, camera, light, or
group functions in the 3D world of the cast member.
Models, cameras, lights, and groups can be stored in a 3D cast member but not used in the 3D
world of the cast member. Use the
addToWorld and removeFromWorld commands to add and
remove models, cameras, lights, and groups from the 3D world of the cast member.
Parameters
None.
Example
This statement shows that the model named Teapot exists in the 3D world of the cast member
named TableScene:
put member("TableScene").model("Teapot").isInWorld()
-- 1
See also
addToWorld, removeFromWorld, child (3D)