Using ActionScript 2.0 Components |
|
|
|
| Working with Components > About loading components | |||
If you load version 2 components into a SWF file or into the Loader component, the components may not work correctly. These components include the following: Alert, ComboBox, DateField, Menu, MenuBar, and Window.
Use the _lockroot property when calling loadMovie() or loading into the Loader component. If you're using the Loader component, add the following code:
myLoaderComponent.content._lockroot = true;
If you're using a movie clip with a call to loadMovie(), add the following code:
myMovieClip._lockroot = true;
If you don't set _lockroot to true in the loader movie clip, the loader only has access to its own library, but not the library in the loaded movie clip.
The _lockroot property is supported by Flash Player 7. For information about this property, see _lockroot (MovieClip._lockroot property) in the ActionScript 2.0 Language Reference.
|
|
|
|