1 .TH swfcombine "1" "January 2009" "swfcombine" "swftools"
3 swfcombine - a tool for combining swf (flash) files
6 .B swfcombine [-rXYomlcv] [-f] masterfile [-xysf] [(name1|#id1)=]slavefile1 .. [-xysf] [(nameN|#idN)=]slavefileN
8 .B swfcombine [-rXYomv] --stack[1] [-xysf] [(name1|#id1)=]slavefile1 .. [-xysf] [(nameN|#idN)=]slavefileN
10 .B swfcombine [-rXYov] --cat [-xysf] [(name1|#id1)=]slavefile1 .. [-xysf] [(nameN|#idN)=]slavefileN
12 .B swfcombine [-rXYomlcv] --dummy [-xys] [file]
15 Take two or more SWF files, and combine them into a new SWF. SWFs can either
16 be stacked (no masterfile is present) or inserted (into the masterfile).
18 SWF files are animation files which can be displayed in Web Browsers using
21 For template mechanisms, it's often convenient to separate the processes
22 of generating small animation fragments and merging them into a big
23 movie. swfcombine can be used to perform the latter.
27 \fB\-o\fR, \fB\-\-output\fR \fIoutputfile\fR
28 explicitly specify output file. (otherwise, output.swf will be used)
30 \fB\-t\fR, \fB\-\-stack\fR
31 Don't assume the first file is a master file. Instead, store each
32 file in a seperate frame.
34 \fB\-T\fR, \fB\-\-stack1\fR
35 place each slave in the first frame (no master movie)
37 \fB\-m\fR, \fB\-\-merge\fR
38 Do not store the slave files in a sprite/MovieClip. Instead, merge the files frame by frame.
40 \fB\-a\fR, \fB\-\-cat\fR
41 concatenate all slave files (no master movie)
43 \fB\-l\fR, \fB\-\-overlay\fR
44 Don't remove any master objects, only overlay new objects
46 \fB\-c\fR, \fB\-\-clip\fR
47 Clip the slave objects by the corresponding master objects
49 \fB\-v\fR, \fB\-\-verbose\fR
50 Be verbose. Use more than one -v for greater effect
52 \fB\-d\fR, \fB\-\-dummy\fR
53 Don't require the presence of slave objects. Usually used together with \fB\-X\fR, \fB\-Y\fR or \fB\-r\fR.
55 \fB\-f\fR, \fB\-\-frame\fR
56 The next slave replaces a frame, not an object. Therefore the slave identifier is a
57 frame number (#frame=) or frame label (framelabel=).
59 \fB\-x\fR, \fB\-\-movex\fR \fIxpos\fR
60 x Adjust position of slave by \fIxpos\fR pixels
62 \fB\-y\fR, \fB\-\-movey\fR \fIypos\fR
63 y Adjust position of slave by \fIypos\fR pixels
65 \fB\-s\fR, \fB\-\-scale\fR \fIscale\fR
66 Adjust size of slave by \fIscale\fR percent (e.g. 100% = original size)
68 \fB\-r\fR, \fB\-\-rate\fR \fIfps\fR
69 Force the output to have the framerate \fIfps\fR. (Otherwise, the framerate of the master file will be used)
71 \fB\-X\fR, \fB\-\-width\fR \fIwidth\fR
72 Force movie bbox width to \fIwidth\fR (default: use master width (not with -t))
74 \fB\-Y\fR, \fB\-\-height\fR \fIheight\fR
75 Force movie bbox height to \fIheight\fR (default: use master height (not with -t))
77 \fB\-N\fR, \fB\-\-local-with-networking\fR
78 Make output file "local-with-networking"
80 \fB\-L\fR, \fB\-\-local-with-filesystem\fR
81 Make output file "local-with-filesystem"
83 \fB\-z\fR, \fB\-\-zlib\fR \fIzlib\fR
84 Use Flash MX (SWF 6) Zlib encoding for the output. The resulting SWF will be
85 smaller, but not playable in Flash Plugins of Version 5 and below.
87 .SH Combining two or more .swf files using a master file
88 Of the flash files to be combined, all except one will be packed into a sprite
89 structure (Movieclip) which will then be inserted into the master .swf file.
90 This means that, in terms of trees, when combining several flash files,
91 one will form the root of the tree, while the others will be
92 appended to the root as a subnode.
93 The user has to specify which of the files will become the root
94 of the tree ("master") and which will be the appended nodes ("slaves").
95 The slave files must all have a name, which is then used to determine
96 their exact position inside the master file.
97 The slave files will then be converted into sprites, inserted into the
98 master file, and all PlaceObject tags in the master file which match the
99 name of the slave file will be updated to correctly display the slave sprite.
100 The slave name may also be the object id, preceded by '#', in which case
101 the object to be replaced is referenced by id and not by instance name.
102 .SH Combining (stacking) one or more .swf files without a master
103 The flash files will be inserted in seperate frames. They will still be
104 packed into Movieclips, therefore the outputfile will have exactly as many
105 frames as there were inputfiles. Also, the files don't need to have names.
106 If you want to access the Movieclips, their names are frameXX, where XX is
107 the decimal number of the file, starting by zero (00).
111 Create two flash movies. Insert some rectangle into one of them, and give
112 it a name. (E.g. "foo") Now call
114 swfcombine -o combined.swf master.swf foo=slave.swf
116 As a result, the slave movie should be visible inside the master movie
117 at the position where the rectangle used to be.
121 Matthias Kramm <kramm@quiss.org>