"swfcombine masterfile viewpoint=slavefile"

This section provides a tutorial example on how to use 'swfcombine masterfile viewpoint=slavefile' command to merge page frames from the slave SWF file to the 'viewport' object in the master SWF file.

After learning how to use SWFCombine, I am ready to insert my page frames contained in herong_book_JavaScript.swf into the page viewer rfxview.swf.

Here is SWFCombine command syntax I will be using:

swfcombine masterfile viewport=slavefile -o outputfile

By replacing file names in the above syntax, I am getting the final SWF file as I expected:

   -o Book_Sample.swf

The next step is to generate the HTML code to show the result:

C:\herong>\local\SWFTools\swfdump -E Book_Sample.swf

<object type="application/x-shockwave-flash"
   data="Book_Sample.swf" width="600" height="800">
<param name="movie" value="Book_Sample.swf"/>
<param name="play" value="true"/>
<param name="loop" value="false"/>
<param name="quality" value="high"/>
<param name="loop" value="false"/>

Putting the above code in a HTML file, I see my PDF pages displayed correctly in the viewport of the viewer!

I have also included the above code here on this page. If you are reading the Web version of this book, you should be able to see mp3player displayed and you can play it. Otherwise, you will see a static image.

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

 SWFObject - Hidding "object" behind JavaScript

 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 Structure and Tags

 SWF File Processing Rules

 SWF Files for Video and Audio Streams

 Outdated Tutorials


 Full Version in PDF/EPUB