small bugfixes, bumped version to 0.9.0
[swftools.git] / src / swfcombine.1
1 .TH swfcombine "1" "April 2009" "swfcombine" "swftools"
2 .SH NAME
3 swfcombine - a tool for combining swf (flash) files
4
5 .SH Synopsis
6 .B swfcombine [-rXYomlcv] [-f] masterfile [-xysf] [(name1|#id1)=]slavefile1 .. [-xysf] [(nameN|#idN)=]slavefileN
7 .PP
8 .B swfcombine [-rXYomv] --stack[1] [-xysf] [(name1|#id1)=]slavefile1 .. [-xysf] [(nameN|#idN)=]slavefileN
9 .PP
10 .B swfcombine [-rXYov] --cat [-xysf] [(name1|#id1)=]slavefile1 .. [-xysf] [(nameN|#idN)=]slavefileN
11 .PP
12 .B swfcombine [-rXYomlcv] --dummy [-xys] [file]
13
14 .SH DESCRIPTION
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).
17 .PP
18 SWF files are animation files which can be displayed in Web Browsers using
19 the Flash Plugin.
20 .LP
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.
24
25 .SH OPTIONS
26 .TP
27 \fB\-o\fR, \fB\-\-output\fR \fIoutputfile\fR  
28     explicitly specify output file. (otherwise, output.swf will be used)
29 .TP
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.
33 .TP
34 \fB\-T\fR, \fB\-\-stack1\fR 
35     place each slave in the first frame (no master movie)
36 .TP
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.
39 .TP
40 \fB\-a\fR, \fB\-\-cat\fR 
41     concatenate all slave files (no master movie)
42 .TP
43 \fB\-l\fR, \fB\-\-overlay\fR 
44     Don't remove any master objects, only overlay new objects
45 .TP
46 \fB\-c\fR, \fB\-\-clip\fR 
47     Clip the slave objects by the corresponding master objects
48 .TP
49 \fB\-v\fR, \fB\-\-verbose\fR 
50     Be verbose. Use more than one -v for greater effect 
51 .TP
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.
54 .TP
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=).
58 .TP
59 \fB\-x\fR, \fB\-\-movex\fR \fIxpos\fR        
60     x Adjust position of slave by \fIxpos\fR pixels
61 .TP
62 \fB\-y\fR, \fB\-\-movey\fR \fIypos\fR        
63     y Adjust position of slave by \fIypos\fR pixels
64 .TP
65 \fB\-s\fR, \fB\-\-scale\fR \fIscale\fR       
66     Adjust size of slave by \fIscale\fR percent (e.g. 100% = original size)
67 .TP
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)
70 .TP
71 \fB\-X\fR, \fB\-\-width\fR \fIwidth\fR       
72     Force movie bbox width to \fIwidth\fR (default: use master width (not with -t))
73 .TP
74 \fB\-Y\fR, \fB\-\-height\fR \fIheight\fR      
75     Force movie bbox height to \fIheight\fR (default: use master height (not with -t))
76 .TP
77 \fB\-N\fR, \fB\-\-local-with-networking\fR 
78     Make output file "local-with-networking"
79 .TP
80 \fB\-L\fR, \fB\-\-local-with-filesystem\fR 
81     Make output file "local-with-filesystem"
82 .TP
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.
86 .PP
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).
108
109 .SH EXAMPLES
110
111 Create two flash movies. Insert some rectangle into one of them, and give
112 it a name. (E.g. "foo") Now call
113
114 swfcombine -o combined.swf master.swf foo=slave.swf
115
116 As a result, the slave movie should be visible inside the master movie
117 at the position where the rectangle used to be.
118
119 .SH AUTHOR
120
121 Matthias Kramm <kramm@quiss.org>