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)
Содержание FLASH MX 2004 - ACTIONSCRIPT
Страница 1: ...ActionScript Reference Guide...
Страница 8: ...8 Contents...
Страница 12: ......
Страница 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Страница 54: ...54 Chapter 2 ActionScript Basics...
Страница 80: ...80 Chapter 3 Writing and Debugging Scripts...
Страница 82: ......
Страница 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Страница 112: ......
Страница 120: ...120 Chapter 6 Using the Built In Classes...
Страница 176: ......
Страница 192: ...192 Chapter 10 Working with External Data...
Страница 202: ...202 Chapter 11 Working with External Media...
Страница 204: ......
Страница 782: ...782 Chapter 12 ActionScript Dictionary...
Страница 793: ...Other keys 793 221 222 Key Key code...
Страница 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Страница 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Страница 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Страница 816: ...816 Index...