(2)中介绍flash 8 新特性的 API
此主题相关图片如下:
看看上图,flash8特性的API主要集中在下面4块
1 图形效果
[Filters]多种和滤镜有关的类,可以将阴影,模糊这些特效
加到你的 mc上。
[Geometry Classes]提供了 Matrix, Point, Rectangle and ColorTransforms 等各种颜色变换效果
[MovieClip Extensions ]除了可以让mc可以利用Filter,
geometry外。还提供了 [Blending Modes]。可以让mc的每一个
点的颜色都和背景相融合,这样可以增加很多效果。[Bitmap
Caching ]可以让一个mc [cacheAsBitmap].作为位图的cache,
不用每次都进行矢量计算,提高了 performance.
[Bitmap Display ]提供了对位图精确到像素的访问能力
2 文字效果:
[TextField Extensions ],flash中原有的TextField
增加了filter[滤镜]还可以定义sharpness,thickness 。
[Text Renderer Control ] ,文字 呈现方式,比如
AntiAliasType,ColorType,GridFitType.
3 文件:
[FileReference]:用于文件上传和下载
4 外部接口
[ExternalInterface]: 用于flash和javascript
xml,的交互。
主要类如下:
BitmapData
BitmapData. Channel
Button
ExternalInterface
FileReference
FileReferenceList
Filters
BevelFilter
BitmapFilter
BitmapFilter. Quality
BitmapFilter.Type
BlurFilter
ColorMatrixFilter
ConvolutionFilter
DisplacementMapFilter
DropShadowFilter
GlowFilter
GradientBevelFilter
GradientGlowFilter
Mode
Geom
ColorTransform
Matrix
Point
Rectangle
Transform
MovieClip
MovieClip. BlendModeType
Text
TextRenderer
TextRenderer. AntiAliasType
TextRenderer. ColorType
TextRenderer. FontStyle
TextRenderer. GridFitType
TextField
admin#flashas.net (#为@) 联系QQ:
:40777822
浙ICP备06033001号