Flash Tutorials - Herong's Tutorial Examples - v3.03, by Dr. Herong Yang
"swfcombine -a" - Concatenate SWF Files
This section provides a tutorial example on how to concatenate two SWF files by appending frames from one file to the end of another file using the 'swfcombine -a' command.
The SWFCombine tool can also be used to concatenate two SWF files by appending frames from one SWF file to the end of another file. Here is the syntax to concatenate frames from 2 SWF files together:
swfcombine -o output.swf -a input_1.swf input_2.swf
Let's test the concatenation function using SWF slide shows generated from Windows 7 wallpaper pictures:
C:\herong>\local\SWFTools\jpeg2swf -f -X 384 -Y 240 -r 0.25 -o landscapes.swf \windows\web\Wallpaper\landscapes\img*.jpg C:\herong>\local\SWFTools\jpeg2swf -f -X 384 -Y 240 -r 0.25 -o nature.swf \windows\web\Wallpaper\nature\img*.jpg C:\herong>\local\SWFTools\swfcombine -o concatenated.swf -a landscapes.swf nature.swf C:\herong>\local\bin\flashplayer_13_sa concatenated.swf
You will see 2 slide shows are nicely concatenated into a single one.
Note that "swfcombine -a" will use the frame rate of the first input file as the frame rate of the output file.
"swfcombine -a" will also use the display size of the first input file as the display of the output file.
Table of Contents
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
►SWFTools - SWF File Manipulation Tools
Downloading and installing SWFTools
"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