|
Saving titles with multiple movies or external media
When saving is enabled, Shockwave uses two automatic saving techniques. These basic saving techniques keep track of files that the user has already encountered and scan for references to external URLs that may contain data that must be saved. These saving techniques work well for many Shockwave pieces. (Any specified URLs must exist in order for the movie to be savable.)
For a more complicated piece (such as a game with several levels that may take some time to get to) or to ensure a successful save every time, you can use a more specific saving method that lets you list required files in a movie data package. With the data package, movies with external media or multiple movies can tell the Shockwave Save feature which files need to be saved for the title to work in Shockmachine. (This method of saving doesn't work with sites that are password-protected.)
The URL for the packaged data file is specified by the swPackage subparameter of the swRemote parameter and is expressed as a literal string. The content of the package file is 7-bit ASCII in XML format. The XML tags are parsed without regard to case. All fields are optional; those not required by the user can be left out. You can use either relative (to the primary DCR file) or fully qualified URLs for specifying the content location.
For a given movie, the package should specify the following:
| Tag |
Description |
| Package |
Encloses the complete package data in XML. |
| File |
Encloses the URL (fully qualified or relative to the movie whose EMBED tag links to this package file) and size of the file at this URL. Create one File tag for each file. |
| URL |
Points to any type of file that must be downloaded to allow the file to play offline successfully. Fully qualified or relative to the movie whose EMBED tag links to this package file. |
| Size |
For each file, the size in bytes, expressed as an integer. |
Here is an example package with all optional fields:
<package>
<file>
<url>http://www.server.com/full/url</url>
<size>245</size>
</file>
<file>
<url>/relative/url#2</url>
<size>2</size>
</file>
</package>
Saving a large number of files can cause problems. For best results, keep the number of files below 75.
|