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
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
card. The list contains the following properties:
is a Boolean value indicating whether the computer has hardware video acceleration.
#present
indicates the name of the manufacturer of the video card.
#vendor
indicates the model name of the video card.
#model
indicates the version of the video driver.
#version
332
Chapter 12: Methods
Required. Specifies the frame number that is associated with the
method; returns a property list with information about the user's video
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers