Load Movie

Use this Action to load another .swf file into the current Flash Player.

panels-action-loadmovie.png  

When a .swf file is loaded, the [0,0] coordinate of the loaded .swf file is aligned with the [0,0] coordinate of the movie or sprite into which is it loaded. The [0,0] coordinate of a .swf file is usually the top-left corner. The [0,0] coordinate inside a sprite is usually the centre. This means if you load a .swf file into a level, the top-left corner of the loaded .swf file will be aligned with the top-left corner of the movie. If you load a .swf file into a sprite, then the top-left corner of the loaded .swf file will be aligned with the center of the sprite.

If you are exporting a .swf file from SWiSH, you can specify that the [0,0] coordinate of the movie is in the centre, rather than the top left. To od this, change the "Offset to suit use as a Movie Clip" option in the Movie Export Panel.

Movie URL
You can specify an absolute or relative URL of the .swf file to load. If you do not specify an absolute URL for the .swf file, the Flash Player will assume the relative URLs are based on the URL for the currently open .swf file. When running in a browser, you can override the base URL using the 'Base' option on the HTML Export Panel. When playing within SWiSH, or using the File | Test | In Player or File | Test | In Browser commands, the default folder is the one selected in the Tools | Preferences dialog. If you want to be able to test the Load Movie action, then you need to ensure that there the .swf files can be found in the selected folder.

Sprite
You can load the .swf file into the current sprite or scene. The .swf file replaces the previous content of the sprite, however, the position and size of the sprite, and any effects applied to it will apply to the loaded .swf instead.

Level
You can specify a level into which to load the .swf file. Movies loaded with higher levels appear in front of those with lower levels. The Movie that was loaded first is always loaded at the bottom level, level 0. The Movie at level 0 sets the Frame Rate, background color, and Frame size for all other loaded Movies. Movies are then stacked in higher numbered levels above the Movie at level 0. You can replace a Movie at a given level by simply loading another Movie into that level. In particular, you can Chain movies together by loading another Movie over the current Movie at level 0.


[Previous] [Main] [Next]