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