C# (CSharp) Recurity.Swf.TagHandler Namespace

Classes

Name Description
AbstractTagCodeHandler A swf tag with code
AbstractTagHandler
CsmTextSettings

The CSMTextSettings tag modifies a previously streamed DefineText,

DefineText2, or DefineEditText tag. The CSMTextSettings tag turns advanced

anti-aliasing on or off for a text field, and can also be used to define

quality and options.

DebugID
DefineBinaryData The DefineBinaryData tag permits arbitrary binary data to be embedded in a Swf file.
DefineBits

This tag defines a bitmap character with JPEG compression.

It contains only the JPEG compressed image data (from the Frame Header onward).

A separate JPEGTables tag contains the JPEG encoding data used to encode

this image (the Tables/Misc segment).

The data in this tag begins with the JPEG SOI marker 0xFF, 0xD8 and ends with the EOI

marker 0xFF, 0xD9. Before version 8 of the Swf file format, Swf files could contain an

erroneous header of 0xFF, 0xD9, 0xFF, 0xD8 before the JPEG SOI marker.

DefineBitsJPEG2

This tag defines a bitmap character with JPEG compression.

It differs from DefineBits in that it contains both the JPEG

encoding table and the JPEG image data. This tag allows multiple

JPEG images with differing encoding tables to be defined within a

single Swf file. The data in this tag begins with the JPEG SOI

marker 0xFF, 0xD8 and ends with the EOI

marker 0xFF, 0xD9. Before version 8 of the Swf file format,

Swf files could contain an erroneous header of 0xFF, 0xD9, 0xFF, 0xD8

before the JPEG SOI marker. In addition to specifying JPEG data,

DefineBitsJPEG2 can also contain PNG image data and non-animated

GIF89a image data. If ImageData begins with the eight bytes

0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A, the ImageData contains

PNG data. If ImageData begins with the six bytes

0x47 0x49 0x46 0x38 0x39 0x61, the ImageData contains GIF89a data.

DefineBitsJPEG3

This tag defines a bitmap character with JPEG compression. This tag extends

DefineBitsJPEG2, adding alpha channel (opacity) data. Opacity/transparency information is

not a standard feature in JPEG images, so the alpha channel information is encoded separately

from the JPEG data, and compressed using the ZLIB standard for compression. The data

format used by the ZLIB library is described by Request for Comments (RFCs) documents

1950 to 1952.

The data in this tag begins with the JPEG SOI marker 0xFF, 0xD8 and ends with the EOI

marker 0xFF, 0xD9. Before version 8 of the Swf file format, Swf files could contain an

erroneous header of 0xFF, 0xD9, 0xFF, 0xD8 before the JPEG SOI marker.

In addition to specifying JPEG data, DefineBitsJPEG2 can also contain PNG image data and

non-animated GIF89a image data.

If ImageData begins with the eight bytes 0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A, the

ImageData contains PNG data.

If ImageData begins with the six bytes 0x47 0x49 0x46 0x38 0x39 0x61, the ImageData

contains GIF89a data.

If ImageData contains PNG or GIF89a data, the optional BitmapAlphaData is not

supported.

The minimum file format version for this tag is Swf 3. The minimum file format version for

embedding PNG of GIF89a data is Swf 8

DefineBitsLossless

Defines a lossless bitmap character that contains RGB bitmap data compressed with ZLIB.

The data format used by the ZLIB library is described by Request for Comments (RFCs)

documents 1950 to 1952.

Two kinds of bitmaps are supported. Colormapped images define a colormap of up to 256

colors, each represented by a 24-bit RGB value, and then use 8-bit pixel values to index into

the colormap. Direct images store actual pixel color values using 15 bits (32,768 colors) or 24

bits (about 17 million colors).

DefineBitsLossless2

DefineBitsLossless2 extends DefineBitsLossless with support for opacity (alpha values). The

colormap colors in colormapped images are defined using RGBA values, and direct images

store 32-bit ARGB colors for each pixel. The intermediate 15-bit color depth is not available

in DefineBitsLossless2.

DefineButton

The DefineButton tag defines a button character for later use by control tags such as

PlaceObject.

DefineButton includes an array of Button records that represent the four button shapes: an up

character, a mouse-over character, a down character, and a hit-area character. It is not

necessary to define all four states, but at least one button record must be present. For example,

if the same button record defines both the up and over states, only three button records are

required to describe the button.

More than one button record per state is allowed. If two button records refer to the same state,

both are displayed for that state.

DefineButton also includes an array of ACTIONRECORDs, which are performed when the

button is clicked and released

DefineButton2 DefineButton2 extends the capabilities of DefineButton by allowing any state transition to trigger actions.
DefineButtonSound
DefineEditText The DefineEditText tag defines a dynamic text object, or text field.
DefineFont The DefineFont tag defines the shape outlines of each glyph used in a particular font
DefineFont2 The DefineFont2 tag extends the functionality of DefineFont.
DefineFont3 The DefineFont3 tag extends the functionality of DefineFont2 by expressing the SHAPE coordinates in the GlyphShapeTable at 20 times the resolution.
DefineFont4 DefineFont4 supports only the new Flash Text Engine. The storage of font data for embedded fonts is in CFF format.
DefineFontAlignZones The DefineFontAlignZones tag modifies a DefineFont3 tag.
DefineFontInfo The DefineFontInfo tag defines a mapping from a glyph font (defined with DefineFont) to a device font.
DefineFontInfo2 DefineFontInfo2 is identical to DefineFontInfo, except that it adds a field for a language code.
DefineFontName

The DefineFontName tag contains the name and copyright information for a font embedded in the Swf file.

DefineMorphShape

The DefineMorphShape tag defines the start and end states of a morph sequence. A morph

object should be displayed with the PlaceObject2 tag, where the ratio field specifies how far

the morph has progressed.

DefineMorphShape2

The DefineMorphShape2 tag extends the capabilities of DefineMorphShape by using a new

morph line style record in the morph shape. MORPHLINESTYLE2

DefineScalingGrid
DefineSceneAndFrameLabelData
DefineShape

The DefineShape tag defines a shape for later use by control tags such as PlaceObject. The

ShapeId uniquely identifies this shape as ‘character’ in the Dictionary. The ShapeBounds field

is the rectangle that completely encloses the shape. The SHAPEWITHSTYLE structure

includes all the paths, fill styles and line styles that make up the shape.

DefineShape4

DefineShape4 extends the capabilities of DefineShape3 by using a new line style record in the

shape. LINESTYLE2 allows new types of joins and caps as well as scaling options and the

ability to fill a stroke.

DefineShape4 specifies not only the shape bounds but also the edge bounds of the shape.

While the shape bounds are calculated along the outside of the strokes, the edge bounds are

taken from the outside of the edges, as shown in the following diagram. The EdgeBounds

field assists Flash Player in accurately determining certain layouts.

In addition, DefineShape4 includes new hinting flags UsesNonScalingStrokes and

UsesScalingStrokes. These flags assist Flash Player in creating the best possible area for

invalidation.

DefineSound
DefineSprite Defines a sprite character
DefineText The DefineText tag defines a block of static text.
DefineVideoStream DefineVideoStream defines a video character that can later be placed on the display list
DoABC
DoAction
DoInitAction
EnableDebugger This Tag is used in Swf version 5 only. It is depricated in later versions
EnableDebugger2 This Tag is used in Swf version 5 only. It is depricated in later versions
End
ExportAssets
FileAttributes
FrameLabel
GenericTag
ImportAssets
ImportAssets2
JPEGTables

This tag defines the JPEG encoding table (the Tables/Misc segment) for all JPEG images

defined using the DefineBits tag. There may only be one JPEGTables tag in a Swf file.

The data in this tag begins with the JPEG SOI marker 0xFF, 0xD8 and ends with the EOI

marker 0xFF, 0xD9. Before version 8 of the Swf file format, Swf files could contain

Metadata
PlaceObject
PlaceObject2
PlaceObject3
ProductID
Protect
SetBackgroundColor
SetTabIndex
SoundEnvelope
SoundInfo
SoundStreamBlock
SoundStreamHead
SoundStreamHead2
StartSound
StartSound2
SymbolClass
UndocumentedTag Represents an undocumented tag.
VideoFrame VideoFrame provides a single frame of video data.