📄 readme.htm
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./Readme_files/filelist.xml">
<link rel=Edit-Time-Data href="./Readme_files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Flash File Format SDK</title>
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:820925557;
mso-list-type:hybrid;
mso-list-template-ids:-1962392954 -1767054046 -923624540 1461612466 2022059864 -802230328 -1899187494 217642672 1539096154 891557534;}
@list l1
{mso-list-id:1457330646;
mso-list-type:hybrid;
mso-list-template-ids:-992079656 1995367218 -1381461636 -1531158834 2126428442 -1920070792 1824947892 672151500 -153971202 -993861420;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l2
{mso-list-id:1545212195;
mso-list-type:hybrid;
mso-list-template-ids:1555204092 1609711542 1927307110 1130912768 -1008974244 -1823805792 -274151648 -953389476 686568992 -394871556;}
@list l3
{mso-list-id:1913391216;
mso-list-type:hybrid;
mso-list-template-ids:-1417138524 -1791959358 1970559984 -1958313902 867339574 -599089070 429554838 693276508 1679618004 1038495066;}
@list l3:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<u1:WordDocument>
<u1:Zoom>144</u1:Zoom>
</u1:WordDocument>
</xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal><b><span style='font-size:13.5pt;font-family:Arial'>Flash
File Format SDK – README<u2:p></u2:p></span></b> <br>
January 28, 2000 </p>
<div class=MsoNormal align=right style='text-align:right'><span
style='font-size:10.0pt'>
<hr size=1 width="100%" align=right>
</span></div>
<p class=MsoNormal><span style='font-size:10.0pt'>The Macromedia Flash File
Format SDK provides a set of tools for developers to write Macromedia Flash 4
SWF files. The File Format SDK is comprised of a low level interface and a high
level interface, both of which write SWF files, but are intended to be used in
different ways.<u2:p></u2:p></span> </p>
<p><b><i><span style='font-family:Arial'>Installation and Executing<u2:p></u2:p></span></i></b>
</p>
<p><span style='font-size:10.0pt'>The project is provided ready to compile on a
Windows systems. A Visual C++ project file is provided.<u2:p></u2:p></span> </p>
<ol start=1 type=1>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l2 level1 lfo3;tab-stops:list .5in'><span style='font-size:10.0pt'>Copy
the Source directory to your hard disk. <u2:p></u2:p></span></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l2 level1 lfo3;tab-stops:list .5in'><span style='font-size:10.0pt'>Open
the Workspace file, swfproduce.dsw with Visual C++. <u2:p></u2:p></span></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l2 level1 lfo3;tab-stops:list .5in'><span style='font-size:10.0pt'>Build
All <u2:p></u2:p></span></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l2 level1 lfo3;tab-stops:list .5in'><span style='font-size:10.0pt'>Now
you should be able to run swfproduce.exe directly from the environment. <u2:p></u2:p></span></li>
</ol>
<p class=MsoNormal><span style='font-size:10.0pt'>Note that if you run from the
command line, the bm128.jpg and audio.wav files need to be in the current
directory. This should not be a problem if you run from the Visual C++ IDE.<u2:p></u2:p></span>
</p>
<p><span style='font-size:10.0pt'>Execution will briefly bring up a console app
which should run and quickly complete. The app will write a series of sample
SWF files to the local directory. You can then view the sample .SWF files and
the example .cpp files that created them, which have the same base name. For
instant SWF gratification, try looking HFExample.swf.<u2:p></u2:p></span> </p>
<p><span style='font-size:10.0pt'>There will be 2 sets of examples written to
your disk:<u2:p></u2:p></span> </p>
<ul type=disc>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l1 level1 lfo6;tab-stops:list .5in'><span style='font-size:10.0pt'>HFExample*,
examples created with the high level manager. <u2:p></u2:p></span></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l1 level1 lfo6;tab-stops:list .5in'><span style='font-size:10.0pt'>FExample*,
examples created with the low level manager. <u2:p></u2:p></span></li>
</ul>
<p class=MsoNormal><b><i><span style='font-family:Arial'>Documentation<u2:p></u2:p></span></i></b>
</p>
<p><span style='font-size:10.0pt'>The SWF File Format Documentation is provided
in both HTML and MS Word 97 formats. Documentation is provided for:<u2:p></u2:p></span>
</p>
<ul type=disc>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l3 level1 lfo9;tab-stops:list .5in'><span style='font-size:10.0pt'>The
SWF File Format, explaining how the file format works.<u2:p></u2:p></span></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l3 level1 lfo9;tab-stops:list .5in'><span style='font-size:10.0pt'>The
SWF manager, which gives programmers an API with which to write SWF files.<u2:p></u2:p></span></li>
</ul>
<p class=MsoNormal>Additional notes about the documentation can be found in the
Documentation subdirectory.<u2:p></u2:p> <span style='font-family:Arial'><o:p></o:p></span></p>
<p><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1027" type="#_x0000_t75" style='width:155.4pt;
height:127.2pt' o:bordertopcolor="this" o:borderleftcolor="this"
o:borderbottomcolor="this" o:borderrightcolor="this">
<v:imagedata src="./Readme_files/image001.png" o:title=""/>
<w:bordertop type="single" width="4"/>
<w:borderleft type="single" width="4"/>
<w:borderbottom type="single" width="4"/>
<w:borderright type="single" width="4"/>
</v:shape><![endif]--><![if !vml]><img width=209 height=171
src="./Readme_files/image002.gif" v:shapes="_x0000_i1027"><![endif]></p>
<p><span style='font-size:10.0pt'>The first 2 subdirectories below
Flash_File_Format_SDK are <b>HTML</b> and <b>MSWord</b>. The entire
documentation is echoed in both formats. (Except the API_Docs which are only
available in HTML format, but the HTML files are in the MSWord tree for
completeness.)<u2:p></u2:p></span> </p>
<p><span style='font-size:10.0pt'>The <b>SWF_File_Format_Docs</b> directory contains
an explanation of the Macromedia SWF file format. The file
"intro.doc/html" provides a basic introduction and links to the
individual SWF topics.<u2:p></u2:p></span> </p>
<p><span style='font-size:10.0pt'>The <b>SWF_Manager_Docs </b>directory
contains the "SDK.doc/html" file which describes the basics of using the
high and low level manager to create SWF files. The subdirectory <b>API_Docs</b>
is a reference (in html) to the high and low level API. The *_files
subdirectories contain images for the html docs, and should be ignored.<u2:p></u2:p></span>
</p>
<p><b><i><span style='font-family:Arial'>Using the SDK in other programs<u2:p></u2:p></span></i></b>
</p>
<ol start=1 type=1>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo12;tab-stops:list .5in'><span style='font-size:10.0pt'>Add
all the File Format SDK files to your project, including the
subdirectories PCM and ZLib-1.1.3. <u2:p></u2:p></span></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo12;tab-stops:list .5in'><span style='font-size:10.0pt'>Remove
all example files HFExample*.* and FExample*.*<u2:p></u2:p></span></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo12;tab-stops:list .5in'><span style='font-size:10.0pt'>Remove
swfproduce.cpp (contains main() ) <u2:p></u2:p></span></li>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo12;tab-stops:list .5in'><span style='font-size:10.0pt'>Include
the HF3SDK header in your files that use the high level SDK, and the F3SDK
header for files that use the low level SDK. <u2:p></u2:p></span></li>
</ol>
<p class=MsoNormal><b><i><span style='font-family:Arial'>The Low Level Interface<u2:p></u2:p></span></i></b>
</p>
<p><span style='font-size:10.0pt'>The low level interface can write SWF files
of any type. Every Flash 4 SWF type (covered in the SWF Format Documentation)
is represented by a class in the low level manager. Classes that begin with ‘F’
are low level classes. Examples of the low level interface are in the FExample*
files. You would use the low level interface if you understand SWF and
wish to write SWF tags directly, or if you are trying to write unusual SWF
files.<u2:p></u2:p></span> </p>
<p><span style='font-size:10.0pt'>Documentation for the low level classes is
provided in hyper linked html, located in the "API_Documentation"
subdirectory. It is in Java doc format. <u2:p></u2:p></span> </p>
<p><span style='font-size:10.0pt'>The low level manager contains many examples,
for which both the SWF file and the .cpp file have the FExample* prefix.<u2:p></u2:p></span>
</p>
<p><span style='font-size:10.0pt'>To examine some sample code, the best place
to start is FExampleBitsLossless.cpp. The lossless bitmap example has the most
detailed documentation. <u2:p></u2:p></span> </p>
<p><b><i><span style='font-family:Arial'>The High Level Interface<u2:p></u2:p></span></i></b>
</p>
<p><span style='font-size:10.0pt'>The high level interface is used to write SWF
in a more natural way. The developer can add Rectangle, Circle, Bitmap,
EditText, and other primitive objects to Frames in a Movie. The Movie can then
be serialized to disk. It's an easy, fast way to write SWF.<u2:p></u2:p></span>
</p>
<p><span style='font-size:10.0pt'>High level classes begin with ‘HF’. Examples
of the high level interface are in the HFExample* files.<u2:p></u2:p></span> </p>
<p><span style='font-size:10.0pt'>Documentation for the high level classes is
provided in hyper linked html, located in the "API_Documentation"
subdirectory. <u2:p></u2:p></span> </p>
<p><span style='font-size:10.0pt'>To review some sample high level code, the
best place to start is HFCircle.cpp, since it this is the example easiest to
understand. HFExample.cpp is also worthwhile to examine; while much larger, it
demonstrates all of the features included in the high level manager. <u2:p></u2:p></span>
</p>
<p><b><i><span style='font-family:Arial'>Thanks!<u2:p></u2:p></span></i></b> </p>
<p><span style='font-size:10.0pt'>We welcome your feedback and comments on the
SDK. You can send them to Flash_Format@macromedia.com. We hope you find the
Flash SDK useful and productive. We welcome feedback and look forward to
hearing from you. <u2:p></u2:p></span> </p>
<p><b><i><span style='font-family:Arial'>The Macromedia Flash Team<u2:p></u2:p></span></i></b>
<br>
<br>
</p>
<p><span style='font-size:10.0pt'>The Macromedia Flash File Format SDK was
written and designed by <a href="www.middlesoft.com">Middlesoft, Inc</a>: <u2:p></u2:p></span>
</p>
<p><span style='font-size:10.0pt'>by Mike Farr, Bater Yu, Lee Thomason<u2:p></u2:p></span>
</p>
<p><span style='font-size:10.0pt'>Thanks also to Ali Memarsadeghi and Bob
Russell<u2:p></u2:p></span></p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -