Lockroot (Movieclip._Lockroot Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

this.stopDrag();
};
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
globalToLocal (MovieClip.globalToLocal method)

_lockroot (MovieClip._lockroot property)

public _lockroot : Boolean
A Boolean value that specifies what
clip. The
_lockroot
SWF file that is being loaded or in the handler that is loading the movie clip.
For example, suppose you have a document called Games.fla that lets a user choose a game to
play, and loads the game (for example, Chess.swf ) into the
that, after being loaded into Games.swf, any use of
Chess.swf (not
_root
Player 7 or later, you can add this statement to Chess.fla on the main Timeline:
this._lockroot = true;
If you don't have access to Chess.fla (for example, if you are loading Chess.swf from someone
else's site into
chess_mc
Place the following ActionScript on the main Timeline of Games.fla:
chess_mc._lockroot = true;
In this case, Chess.swf can be published for any version of Flash Player, as long as Games.swf
is published for Flash Player 7 or later.
When calling
loadMovie()
movie, as the following code shows. If you don't set
any references to
_root
of the loaded movie:
_root
myMovieClip._lockroot = true;
Availability: ActionScript 1.0; Flash Player 7
MovieClip.getNextHighestDepth()
_root
property is
undefined
in Games.swf ). If you have access to Chess.fla and publish it to Flash
), you can set the Chess.swf
, set the
MovieClip._lockroot
in the loaded movie point to the
method used in this example requires Flash Player
refers to when a SWF file is loaded into a movie
by default. You can set this property within the
game_mc
in Chess.swf refers to
_root
_lockroot
property to
_lockroot
_root
method.
movie clip. Make sure
_root
property when you load it.
in the loader
true
to
in the loader movie,
true
of the loader instead of the
MovieClip
in
895

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF