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.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...