EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 397

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
gt (greater than — string specific) 397
gotoAndStop()
Availability
Flash 2.
Usage
gotoAndStop([scene,] frame)
Parameters
scene
An optional string specifying the name of the scene to which the playhead is sent.
frame A number representing the frame number, or a string representing the label of the frame,
to which the playhead is sent.
Returns
Nothing.
Description
Function; sends the playhead to the specified frame in a scene and stops it. If no scene is specified,
the playhead is sent to the frame in the current scene.
Example
When the user clicks a button that gotoAndStop() is assigned to, the playhead is sent to Frame 5
in the current scene and the SWF file stops playing.
on(release) {
gotoAndStop(5);
}
See also
stop()
gt (greater than — string specific)
Availability
Flash Player 4. This operator was deprecated in Flash 5 in favor of the new > (greater
than) operator.
Usage
expression1 gt expression2
Parameters
expression1, expression2
Numbers, strings, or variables.
Description
Operator (comparison); compares the string representation of expression1 to the string
representation of expression2 and returns true if expression1 is greater than expression2;
otherwise, returns
false.
See also
> (greater than)

Table of Contents

Related product manuals