106
ActionScript language elements
Example
The following example stops the playhead in the main timeline of the SWF file sub.swf that is
loaded into
_level9
. The sub.swf file contains animation and is in the same directory as the
document that contains the following ActionScript:
loadMovieNum("sub.swf", 9);
myBtn_btn.onRelease = function() {
_level9.stop();
};
You could replace
_level9.stop()
in the previous example with the following code:
_level9.gotoAndStop(5);
This action sends the playhead in the main Timeline of the SWF file in
_level9
to Frame 5
instead of stopping the playhead.
See also
loadMovie function
,
swapDepths (MovieClip.swapDepths method)
maxscroll property
variable_name
.maxscroll
Deprecated
since Flash Player 5. This property was deprecated in favor of
TextField.maxscroll
.
Indicates the line number of the top line of visible text in a text field when the bottom line in
the field is also visible. The
maxscroll
property works with the
scroll
property to control
how information appears in a text field. This property can be retrieved, but not modified.
Availability:
ActionScript 1.0; Flash Lite 1.1
See also
maxscroll (TextField.maxscroll property)
,
scroll (TextField.scroll property)
_parent property
_parent.
property
_parent._parent.
property
Specifies or returns a reference to the movie clip or object that contains the current movie clip
or object. The current object is the object containing the ActionScript code that references
_parent
. Use
_parent
to specify a relative path to movie clips or objects that are above the
current movie clip or object.
Availability:
ActionScript 1.0; Flash Lite 2.0
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...