MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 515

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

MovieClip._lockroot
Availability
Flash Player 7.
Usage
my_mc._lockroot
Description
Property; specifies what
property is
_lockroot
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
sure that, if
_root
Games.swf. If you have access to Chess.fla and publish it to Flash Player 7 or later, you can add
this statement to it:
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), you can set its
Chess.swf can be published for any version of Flash Player, as long as Games.swf is published for
Flash Player 7 or later.
onClipEvent (load)
{
this._lockroot = true;
}
game_mc.loadMovie ("Chess.swf");
If you didn't use the
Chess.swf would refer to
See also
,
_root
MovieClip.attachMovie()
refers to when a SWF file is loaded into a movie clip. The
_root
by default. You can set this property within the SWF file that
undefined
is used in Chess.swf, it still refers to
t property when you load it, as shown below. In this case,
_lockroo
this._lockroot = true
in Games.swf after Chess.swf is loaded into Games.swf.
_root
,
MovieClip.loadMovie()
movie clip. You want to make
game_mc
in Chess.swf after being loaded into
_root
statement in either of the SWF files,
in
_root
MovieClip._lockroot
515

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents