User Guide

650
targetFrameRate
Syntax
sprite(which3dSprite).targetFrameRate
Description
3D sprite property; determines the preferred number of frames per second to use when rendering
a 3D sprite. The default value is 30 frames per second. The targetFrameRate property is only used
if the
useTargetFrameRate proper ty is set t o TRUE. If the useTargetFrameRate prope rty is set to TRUE,
Director will reduce the polygon count of the models in the sprite if necessary to maintain the
specified frame rate.
Example
These statements set the targetFrameRate property of sprite 3 to 45 and enforce the frame rate by
setting the
useTargetFrameRate property of the sprite to TRUE:
sprite(3).targetFrameRate = 45
sprite(3).useTargetFrameRate = TRUE
See also
useTargetFrameRate
tell
Syntax
tell whichWindow to statement(s)
tell whichWindow
statement(s)
end
Description
Command; communicates statements to the window specified by whichWindow.
The
tell command is useful for allowing movies to interact. It can be used within a main movie
to send a message to a movie playing in a window, or to send a message from a movie playing in a
window to the main movie. For example, the
tell command can let a button in a control panel
call a handler in a movie playing in a window. The movie playing in a window may react to the
first movie handler by executing the handler. The movie playing in the window may interact with
the main movie by sending a value back to the movie.
When you use the tell command to send a message to a movie playing in a window, identify the
window object by using the full pathname or its number in
windowList. If you use windowList, use
the expression
getAt(the windowList, windowNum), where windowNum is a variable that contains the
number of the windows position in the list. Because the opening and closing of windows may
change the order of
windowList, it is a good idea to store the full pathname as a global variable
when referencing windows with
getAt in windowList.