User Guide
332 Chapter 12: Methods
getFrameLabel()
Usage
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.
Parameters
whichFlashFrameNumber
Required. Specifies the frame number that is associated with the
frame label.
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.
-- Lingo syntax
on exitFrame
if sprite(1).getFrameLabel(15) = "Lions" then
go "Lions"
else
go the frame
end if
end
// JavaScript syntax
function exitFrame() {
if (sprite(1).getFrameLabel(15) == "Lions") {
_movie.go("Lions");
} else {
_movie.go(_movie.frame);
}
}
getHardwareInfo()
Usage
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.