Director Help

findLabel()

Usage

-- Lingo syntax
spriteObjRef.findLabel(whichLabelName)

// JavaScript syntax
spriteObjRef.findLabel(whichLabelName);

Description

Function: this function returns the frame number (within the Flash movie) that is associated with the label name requested.

A 0 is returned if the label doesn’t exist, or if that portion of the Flash movie has not yet been streamed in.

Parameters

whichLabelName Required. Specifies the frame label to find.

Example

This returns the frame number (within the Flash movie- in member(1)) that is associated with the label name "GetMe"

-- Lingo syntax
sprite(1).findLabel("GetMe")

// JavaScript syntax
sprite(1).findLabel("GetMe");