Lingo Dictionary > G-K > getFrameLabel |  |

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