|
|
Create a custom Fireworks album player
You can create a custom player to work with the Create
Slideshow command. In addition, the source files of the default
slide show players are included with the software so that you can
modify or skin the players.
Publish both the SWF and (if available) the HTML file
(with either the .htm or .html extension).
Change the extension of the SWF to something other than .swf.
Note: On Mac OS, renaming the SWF file in Finder may
not work (unless you have set the Show File Extensions option).
You may have to rename it using the file's properties dialog box,
under Name & Extension.
In the same folder as the SWF file, create an XML file that
has the following format:
<?xml version="1.0"encoding="utf-8"?>
<FWACPlayer>
<Player name="Player - Black (Flash)"preview="player_black.jpg"launch="index.html">
<File src="player_black.fap"dst="player_black.swf"/>
<File src="player_black.html"dst="index.html"/>
<Info src="player_black.info"/>
</Player>
<Player name="Player - White (Flash)"preview="player_white.jpg"launch="index.html">
<File src="player_white.fap"dst="player_white.swf"/>
<File src="player_white.html"dst="index.html"/>
<Info src="player_white.info"/>
</Player>
</FWACPlayer>
Note: If you have multiple
versions of the same basic player, you can list them in the XML
(as shown earlier).
For each Player node, list the source and destination filenames
inside the File node.
(Optional) To provide additional information for the player,
add the Info node, with the src attribute
containing the name of the file. The info file must contain HTML
text. If the file contains simple non-HTML text, line feeds, carriage
returns, and tabs are removed before displaying the text.
Create or edit the MXI file so that the renamed SWF and HTML
get placed in a Configurations/Commands/Create Slideshow/Players
folder.
Note: For the Launch in Browser option
to work at the end of a process, the SWF and HTML files must have
the same name.
The generated XML file has the following
structure:
<AlbumBook... >
<Album ... >
<Slide ... />
<Slide ... />
<Slide ... />
</Album>
<Album ... >
<Slide ... />
<Slide ... />
<Slide ... />
</Album>
</AlbumBook>
|