由于最近研究swf文件格式做一些项目应用,但英文水平没毕业,试着借助很多翻译工具,希望给用到的人提供一点帮助,而不是误导。
1.简介:
The SWF (pronounced “swiff ”) file format delivers vector graphics, text, video, and sound over the Internet and is supported by Adobe® Flash® Player software. The SWF file format is designed to be an efficient delivery format, not a format for exchanging graphics between graphics editors. It is designed to meet the following goals:
SWF(发音为“swiff”)是由Adobe Flash player支持的在互联网上提供矢量图形,文字,视频和声音的软件。这种文件格式被设计成一种高效率的传送格式,而不是一种为图形编辑器之间交换图形格式的。它的目的是满足以下目标:
On-screen display—The format is primarily intended for on-screen display and supports anti-aliasing, fast rendering to a bitmap of any color format, animation, and interactive buttons.
屏幕显示,格式主要用于快速的屏幕显示,支持抗锯齿防失真,快速渲染彩色位图格式,互动按钮。
Extensibility—The format is a tagged format, so it can be evolved with new features while maintaining backward compatibility with earlier versions of Flash Player.
可扩展性,此格式是一种标签格式,因此它可与增加的新特性,而保持向后的与Flash Player的早期版本兼容。
Network delivery—The format can travel over a network with limited and unpredictable bandwidth. The files are compressed to be small and support incremental rendering through streaming. The SWF file format is a binary format and is not human readable like HTML.
The SWF file format uses techniques such as bit-packing and structures with optional fields to minimize file size.
网络传输,该格式可以通过有限的网络资源和不可预知网络状况下进行传输。这些文件被压缩的很小且支持流式播放。 SWF文件格式是一种二进制格式,而不是像HTML人类可读。SWF文件格式使用位压缩和选择字段结构以减少文件大小。
Simplicity—The format is simple so that Flash Player is small and easily ported. Also, Flash Player depends upon a limited set of operating system features only.
简洁性,该格式使Flash播放器体积小,易于移植。且Flash Player 只依赖操作系统特性的有限集合。
File independence—The files display with minimal dependence on external resources such as fonts.
文件独立性,这些文件显示最低限度的依赖例如字体等外部资源。
Scalability—The files work well on limited hardware, and can take advantage of better hardware when it is available. This ability is important because computers have different monitor resolutions and bit depths.
可伸缩性,这些文件工作在有限的硬件资源上,并且可以更好地利用硬件资源。因为计算机有不同的
监视器分辨率和位深度,这种能力是非常重要的。
Speed—The graphics described by SWF files render quickly.
速度,SWF文件可以快速的播放。
Scriptability—The format includes tags that provide sequences of byte codes to be interpreted by a stack machine. The byte codes support the ActionScript® language. Flash Player provides a runtime ActionScript object model that allows interaction with drawing primitives, servers, and features of Flash Player.
脚本能力,该格式包括标签提供的堆栈式机器解释字节码的顺序。字节码提供一种ActionScript ®脚本语言。Flash播放器提供了一个运行时的ActionScript对象模型,允许原语绘图,服务器和Flash Player的特性之间的互动。
SWF files have the extension .swf and a MIME type of application/x-shockwave-flash.10 Introduction The SWF format has evolved through several versions. Through SWF 5, substantial additions were made to the SWF tag set. Starting with SWF 6 and later, the SWF format changes less,as more new features are implemented partly or entirely at the ActionScript level. Starting with SWF 9, the ActionScript 3.0 language, which employs the new ActionScript Virtual Machine 2 (AVM2) can be used. Anyone planning to generate SWF file content that uses newer features should become familiar with the ActionScript object model that Flash Player exposes. Some references for this information are Programming ActionScript 3.0 (see www.adobe.com/go/learn_fl_cs4_programmingAS3_en), ActionScript 3.0 Language Reference (see www.adobe.com/go/learn_flashcs4_langref_en), and the Adobe ActionScript Virtual Machine 2 Overview (PDF file) at www.adobe.com/go/avm2overview. Adobe seriously considers all feedback to the SWF file format specification. E-mail any unclear or potentially erroneous information within the specification to Adobe at
[email protected]. All such email submissions shall be subject to the Submitted Materials guidelines in the Terms of Use at www.adobe.com/misc/copyright.html.SWF
文件的扩展名为.swf文件并是一个MIME类型的应用程序。该SWF格式已经历若干版本。通过的SWF 5,标签做了大量增加完善。在SWF 6后,SWF格式的变化较少,如只是新特性部分被完全实现。在SWF 9时,ActionScript 3.0语言,它采用了新的ActionScript虚拟机2(AVM2的)可以使用。任何想生成SWF文件的内容,使用新特性功能的应该熟悉Flash Player提供的AS对象模型。此信息参考ActionScript 3.0编程(见
www.adobe.com/go/learn_fl_cs4_programmingAS3_en),ActionScript 3.0语言参考
(见www.adobe.com/go/learn_flashcs4_langref_en)和Adobe的ActionScript虚拟机2概述(PDF文件)在www.adobe.com/go/avm2overview。Adobe认真考虑所有的SWF文件格式说明书的反馈。email任何Adobe在说明书中可能不清楚或错误的信息向
[email protected]。所有这些email提交在位于www.adobe.com/misc/copyright.html 的使用条款材料指南。