User Guide
266
getFrameLabel()
Syntax
sprite(whichFlashSprite).getFrameLabel(whichFlashFrameNumber)
getFrameLabel(sprite whichFlashSprite, whichFlashFrameNumber)
Description
Function; returns the frame label within a Flash movie that is associated with the frame number
requested. If the label doesn’t exist, or that portion of the Flash movie has not yet been streamed
in, this function returns an empty string.
Example
The following handler looks to see if the marker on frame 15 of the Flash movie playing in sprite
1 is called "Lions". If it is, the Director movie navigates to frame "Lions". If it isn’t, the Director
movie stays in the current frame and the Flash movie continues to play.
on exitFrame
if sprite(1).getFrameLabel(15) = "Lions" then
go "Lions"
else
go the frame
end if
end
getHardwareInfo()
Syntax
getRendererServices().getHardwareInfo()
Description
3D rendererServices method; returns a property list with information about the user’s video
card. The list contains the following properties:
#present is a Boolean value indicating whether the computer has hardware video acceleration.
#vendor indicates the name of the manufacturer of the video card.
#model indicates the model name of the video card.
#version indicates the version of the video driver.
#maxTextureSize is a linear list containing the maximum width and height of a texture, in
pixels. Textures that exceed this size are downsampled until they do not. To avoid texture
sampling artifacts, author textures of various sizes and choose the ones that do not exceed the
#maxTextureSize value at run time.
#supportedTextureRenderFormats is a linear list of texture pixel formats supported by the
video card. For details, see
textureRenderFormat.
#textureUnits indicates the number of texture units available to the card.
#depthBufferRange is a linear list of bit-depth resolutions to which the depthBufferDepth
property can be set.
#colorBufferRange is a linear list of bit-depth resolutions to which the colorBufferDepth
property can be set.