Load Movie
Top  Previous  Next


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

Panels-Action-LoadMovie  

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 center. This means that 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 center, rather than the top left. To do this, change the "Offset to suit use as a Movie Clip" option in the Movie Export Panel.

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 box. If you want to be able to test the Load Movie Action, then you need to ensure that the .swf files can be found in the selected folder.

Note: When used in external Flash Player 6+ player, browser or projector .exe, you can use loadMovie to load either a SWF file of a non-progressive JPEG file.

Load Into

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 the level you wish to load the .swf file into. Movies loaded into higher levels appear in front of those in 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 numerically higher 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.  

Variables
Specifies the HTTP method of sending variables to the Movie to be loaded.

·Don't send variables: no variables are sent  
·Send using get: the GET method appends the variables to the end of the URL, and is used for small numbers of variables  
·Send using post: the POST method sends the variables in a separate HTTP header and is used for long strings of variables  

Load Variables Only
Reads variables from the URL specified, either from a text file or a script such as CGI, ASP, PHP or Perl
scripts. The content of the Sprite or Level specified are not replaced, only the value of the variables.