"master and slave" - Viewer and Page Frames
This section describes the 'master and slave' SWF file building process - build a master to act as the viewer, build the a slave to hold page frames, then merge them to produce the final SWF file.
In order to help users to navigate through page frames contained in a SWF file
generated by the PDF2SWF tool, we need to use "master and slave" SWF building process
with 3 steps:
1. Build the "master" SWF file - The master SWF file contains a "viewer", which
- A rectangle area where "slave" page frames will be displayed.
This rectangle object should have a specific name like "viewport",
which will be used as a reference point to insert "slave" SWF files.
- Scrolling bars on the "viewport", in case the page size is larger than the
- Navigation buttons which are linked to actions to move page frames in the "viewpoint".
For example, "Next" button should be linked to action "viewpoint.nextFrame()".
- Zoom in/out buttons which are linked to actions to scale page frames in the "viewpoint".
2. Build the "slave" SWF file - The slave SWF file contains page frames, which
are usually generated from paged documents like PDF, Word, PointPoint, etc.
3. Build the final SWF file - The final SWF file is usually an output of SWF merging tool
like SWFCombine from SWFTools, which copies page frames from the slave file into
the "viewpoint" of the master file.
Here is what I am planning to do the test this "master and slave" building process:
For step 1, I don't want to build a new "master" SWF file myself.
I will use the one provided in the SWFTools: \local\SWFTools\rfxview.swf.
For step 2, I will use the SWF file generated from the previous section,
For step 3, I want to learn to use the SWFCombine command provided in SWFTools.
Last update: 2014.
Table of Contents
About This Book
Introduction of Adobe Flash
Adobe Flash Player Plugin for Firefox
Adobe Flash Player Plugin for Chrome
Adobe Flash Player Plugin for Safari
Adobe Flash Player ActiveX for IE
Using "object" Elements for Flash Files
Using "embed" Elements for Flash Files
"mp3player" - MP3 Music Player
Flash Player Projector
►SWFTools - SWF File Manipulation Tools
What Is SWFTools?
Downloading and installing SWFTools
SWFDump - SWF File Dump Tool
"swfdump" - Dump SWF File Header
"swfdump -E" - Generate HTML Code
JPEG2SWF - JPEG to SWF File Conversion Tool
"jpeg2swf *.jpg" - Create a Slide Show
PDF2SWF - PDF to SWF File Conversion Tool
"pdf2swf" - Convert PDF to SWF
►"master and slave" - Viewer and Page Frames
SWFCombine - SWF File Merging Tool
"swfcombine masterfile viewpoint=slavefile"
"swfcombine -a" - Concatenate SWF Files
"swfcombine -d" - Change Frame Rate and Size
SWFC Script to Generate Flash SWF Files
ActionScript Embedded in SWFC Script
AS3Compile - ActionScript 3 Compiler
Adobe Flex SDK 4
SWF File Struture and Tags
SWF File Processing Rules
SWF Files for Video and Audio Streams
PDF Printing Version