XML tags specification

Legend

Type Description Sample value
int integer 123, -456
bool boolean true, false
float floating 4.5, -10.7
string string 'Pix', 'AS'
hex hexadecimal string 2 = '02', char 2 = '32', chars AB = '4142'
color color in format: integer, $BBGGRR, #RRGGBB, $AABBGGRR, #AARRGGBB 255, $0000FF, #FF0000, $FF0000FF, #FFFF0000
subnode xml sub node <Node>
  <SubNode />
</Node>
subnodes xml sub nodes <Node>
  <SubNode />
  <SubNode />
...
</Node>
CDATA string value in node <Value>
    <![CDATA[...]]>
</Value>

SWF-layer tags

Detail information about the SWF-tags please see "SWF file format specification" at the official site Adobe.com.

SWF

<SWF [XMin YMin] XMax YMax FPS Version SystemCoord [Compressed]>
Root node for SWF-layer

Item Type Required Default value Description, remark
XMin int   0 X min coordinate for flash animation
YMin int   0 Y min coordinate for flash animation
XMax int +   X max coordinate of flash animation
YMax int +   Y max coordinate of flash animation
FPS
float +   Frame per seconds value for animation
Version int +   Version (3-8) of flash format used
SystemCoord string +   Twips|Pix coordinate system type. 1 Pix = 20 Twips
Compressed bool   true Enable/Disable compression for file (gzip based)

Basic Data Types

Matrix

<Matrix [X] [Y] [ScaleX ScaleY] [SkewX SkewY] />
Parent node: PlaceObject, PlaceObject2, LinearGradient, RadialGradient, FocalGradient, TileBitmap, ClipBitmap, NonSmoothTileBitmap, NonSmoothClipBitma, DefineText, DefineText2, DefineButtonCxform, ButtonRecord

Item Type Required Default value Description, remark
X int   0 X coordinate of parent object
Y int   0 Y coordinate of parent object
ScaleX float     Scaling factor for X axis
ScaleY float     Scaling factor for Y axis
SkewX float     Skew factor for X axis
SkewY float   Skew factor for Y axis

ColorTransform

<ColorTransform [Alpha] [[AddR] [AddG] [AddB] [AddA]] [[MultR] [MultG] [MultB] [MultA]]>
Parent node: PlaceObject, PlaceObject2, ButtonRecord

Item Type Required Default value Description, remark
Alpha bool   false Indicate use of alpha channel in color transformation
AddR int   0 0-255 value to add to R channel of RGB or RGBA color
AddG int   0 0-255 value to add to G channel of RGB or RGBA color
AddB int   0 0-255 value to add to B channel of RGB or RGBA color
AddA int   0 0-255 value to add to Alpha channel of RGBA color
MultR int   256 Value to multiply R channel of RGB or RGBA color
MultG int   256 Value to multiply G channel of RGB or RGBA color
MultB int   256 Value to multiply B channel of RGB or RGBA color
MultA int   256 Value to multiply alpha channel or RGBA color

The Display List

ShowFrame

<ShowFrame />
Parent node: SWF, DefineSprite

PlaceObject

<PlaceObject ID Depth>
Parent node: SWF, DefineSprite

Item Type Required Default value Description, remark
ID int +   Unique ID of the place object
Depth int +   Depth to place visual object into
Matrix subnode +   Matrix used to display visual object
ColorTransform subnode     Color transformation options for visual object

PlaceObject2, PlaceObject3

<PlaceObject2 [ID] [Name] Depth [Ratio] [ClipDepth] [RemoveDepth]>
Parent node: SWF, DefineSprite

Item Type Required Default value Description, remark
ID int     Unique ID of the object
Name string     Name of the place object (can be referred as linkage name in Actionscript)
Depth int +   Depth to place visual object into
Ratio int     Ratio for visual object
ClipDepth int     ClipDepth parameter for movieclip associated with this place object
RemoveDepth bool   Indicates if place object should be automatically replace with a new one if new object uses the same depth
Matrix subnode     Matrix associated with place object to display visual object
ColorTransform subnode     Color transformation options for visual object
EventActions subnode     Actions associated with events for this place object (movieclip events)
Filters subnode     Additional filters (used in PlaceObject3 only)

EventActions (for PlaceObject2)

<EventActions>
Parent node: PlaceObject2

Item Type Required Default value Description, remark
Actions subnodes +   Contains actions for place object events

Actions

<Actions Event [KeyCode] [File] [FileType]>
Parent node: EventActions

Item Type Required Default value Description, remark
Event string +  

Available values indicating an event type are:

KeyUp, KeyDown, MouseUp, MouseDown, MouseMove, Unload, EnterFrame, Load, DragOver, RollOut, RollOver, ReleaseOutside, Release, Press, Initialize, Data, Construct, KeyPress, DragOut

KeyCode int     Integer ASCII code for key pressed
File string     Associated file with actionscript
FileType string     AC|bytecode
Indicates if file contains p-code actionscript or compiled bytecode actionscript
action records subnodes     Records containing actions for events

Filters

<Filters>
Parent node: PlaceObject3, ButtonRecord

Item Type Required Default value Description, remark
DropShadow subnodes     Contains settings for DropShadow effect
Blur subnodes     Contains settings for Blur effect
Glow subnodes     Contains settings for Glow effect
Bevel subnodes     Contains settings for Bevel effect
GradientGlow subnodes     Contains settings for GradientGlow effect
GradientBevel subnodes     Contains settings for GradientBevel effect
Convolution subnodes     Contains settings for Convolution effect
ColorMatrix subnodes     Contains color transformation settings

DropShadow

<DropShadow BlurX BlurY Passes Angle Distance Strength InnerShadow CompositeSource Knockout Color/>
Parent node: Filters

Item Type Required Default value Description, remark
BlurX float +   Blur factor for X axis
BlurY float +   Blur factor for Y axis
Passes string   Low Low, Medium, High
Angle float +   Angle for effect
Distance float +   Distance parameter for effect
Strength float +   Strength parameter for effect
InnerShadow bool +   Indicates InnerShadow type of effect
CompositeSource bool +   Indicates CompositeSource parameter for effect
Knockout bool +   Indicates KnockOut type of effect
Color color +   Indicates color used for shadow in effect

Blur

<Blur BlurX BlurY />
Parent node: Filters

Item Type Required Default value Description, remark
BlurX float +   Blur factor for X axis
BlurY float +   Blur factor for Y axis
Passes string   Low Low, Medium, High

Glow

<Glow BlurX BlurY Passes Strength InnerGlow Knockout Color/>
Parent node: Filters

Item Type Required Default value Description, remark
BlurX float +   Blur factor for X axis
BlurY float +   Blur factor for Y axis
Passes string   Low Low, Medium, High
Strength float +   Strength parameter for effect
InnerGlow bool +   Indicates InnerGlow type of effect
Knockout bool +   Indicates KnockOut type of effect
Color color +   Indicates color used for shadow in effect

Bevel

<Bevel BlurX BlurY Passes Angle Distance Strength InnerShadow CompositeSource Knockout OnTop ShadowColor HighlightColor/>
Parent node: Filters

Item Type Required Default value Description, remark
BlurX float +   Blur factor for X axis
BlurY float +   Blur factor for Y axis
Passes string   Low Low, Medium, High
Angle float +   Angle for effect
Distance float +   Distance parameter for effect
Strength float +   Strength parameter for effect
InnerShadow bool +   Indicates InnerShadow type of effect
CompositeSource bool +   Indicates CompositeSource parameter for effect
Knockout bool +   Indicates KnockOut type of effect
OnTop bool +   Turn on OnTop parameter of effect
ShadowColor color +   Color of shadow
HighlightColor color +   Color used for highlighting

GradientGlow, GradientBevel

<GradientGlow BlurX BlurY Passes Angle Distance Strength InnerShadow CompositeSource Knockout OnTop>
Parent node: Filters

Item Type Required Default value Description, remark
BlurX float +   Blur factor for X axis
BlurY float +   Blur factor for Y axis
Passes string   Low Low, Medium, High
Angle float +   Angle for effect
Distance bool +   Distance parameter for effect
Strength float +   Strength parameter for effect
InnerShadow bool +   Indicates InnerShadow type of effect
CompositeSource bool +   Indicates CompositeSource parameter for effect
Knockout bool +   Indicates KnockOut type of effect
OnTop bool +   Turn on OnTop parameter of effect
Color submodes +   Color settings for effect

Color

<Color Ratio >
Parent node: GradientGlow, GradientBevel

Item Type Required Default value Description, remark
Ratio int +   Color ratio factor
node value color +   Color used in a parent effect

Convolution

<Convolution MatrixX MatrixY Bias Clamp Divisor PreserveAlpha Mn/>
Parent node: Filters

Item Type Required Default value Description, remark
MatrixX int +   X coordinate in a matrix used in effect
MatrixY int +   Y coordinate in a matrix used in effect
Bias float   Low Low, Medium, High
Clamp bool     Indicates Clamp parameter of effect
Divisor float     Divisor parameter of effect
PreserveAlpha bool     Preserves alpha layer value for effect
M float     Value of X,Y point in a matrix used in effect
n = 0 ... (MatrixX*MatrixY-1)

ColorMatrix

<ColorMatrix (R0...R4 G0...G4 B0...B4 A0...A4)|([Brightness] [Contrast] [Saturation] [Hue]) />
Parent node: Filters

Item Type Required Default value Description, remark
R0...R4 float +   Attributes indicating R value of RGBA color for each 4 elements of color matrix
G0...G4 float +   Attributes indicating G value of RGBA color for each 4 elements of color matrix
B0...B4 float +   Attributes indicating B value of RGBA color for each 4 elements of color matrix
A0...A4 float +   Attributes indicating A (alpha channel) value of RGBA color for each 4 elements of color matrix
Brightness int   0 Brightness factor for color matrix
Contrast int   0 Contrast factor for color matrix
Saturation int   0 Saturation factor for color matrix
Hue int   0 Hue factor for color matrix

RemoveObject

<RemoveObject ID Depth />
Parent node: SWF, DefineSprite

Item Type Required Default value Description, remark
ID int +   Unique ID of command object
Depth int +   Depth to remove visual object from

RemoveObject2

<RemoveObject2 Depth />
Parent node: SWF, DefineSprite

Item Type Required Default value Description, remark
Depth int +   Depth to remove visual object from

Control Tags

SetBackgroundColor

<SetBackgroundColor Color />
Parent node: SWF

Item Type Required Default value Description, remark
Color color +   RGB type value indicating background color for flash animation

FrameLabel

<FrameLabel Name [isAnchor] />
Parent node: SWF

Item Type Required Default value Description, remark
Name string +   Name of the frame
isAnchor boolean   false Indicates if label is anchored

Protect, EnableDebugger, EnableDebugger2

<Protect [Password] [Hash] />
Parent node: SWF

Item Type Required Default value Description, remark
Password string     Contains password for animation
Hash string     Contains MD5 hash for password

End

<End />
Parent node: SWF, DefineSprite

ExportAssets

<ExportAssets>
Parent node: SWF

Item Type Required Default value Description, remark
Object subnodes +   Object to export assets for

Object

<Object ID Name />
Parent node: ExportAssets, ImportAssets

Item Type Required Default value Description, remark
ID integer +   Unique ID of the object to export assets for
Name string +   Name of the object to export assets for

ImportAssets, ImportAssets2

<ImportAssets URL>
Parent node: SWF

Item Type Required Default value Description, remark
URL string +   URL of the animation to import
Object subnodes +   Object to import

ScriptLimits

<ScriptLimits MaxRecursionDepth ScriptTimeoutSeconds />
Parent node: SWF

Item Type Required Default value Description, remark
MaxRecursionDepth int +   Max recusion depth parameter for scripts
ScriptTimeoutSeconds int +   Timeout parameter for scripts in seconds

SetTabIndex

<SetTabIndex Depth TabIndex />
Parent node: SWF

Item Type Required Default value Description, remark
Depth int +   Depth where visual object is contained
TabIndex int +   New tab index for visual object referred by Depth parameter

FileAttributes

<FileAttributes HasMetadata UseNetwork/>
Parent node: SWF

Item Type Required Default value Description, remark
HasMetadata bool +   Indicates if animation contains metadata embedded in
UseNetwork bool +   Indicates if animation uses network connection

Metadata

<Metadata>
Parent node: SWF

Item Type Required Default value Description, remark
Value CDATA +   Metadata in XMP XML based format

DefineScalingGrid

<DefineScalingGrid ID [XMin YMin] XMax YMax />
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   Inique ID of the object
XMin int   0 X min coordinate value of scaling grid
YMin int   0 Y min coordinate value of scaling grid
XMax int +   X max coordinate value of scaling grid
YMax int +   Y max coordinate value of scaling grid

Actions

DoAction

<DoAction [File] [FileType]>
Parent node: SWF, DefineSprite

Item Type Required Default value Description, remark
File string     File with actions saved in it
FileType string     AC|bytecode
Indicates type of actions saved in a file - p-code actions or compiled actions bytecode
action records subnodes     Contains p-code actions used in the script

DoInitAction

<DoInitAction ID [File] [FileType]>
Parent node: SWF, DefineSprite

Item Type Required Default value Description, remark
ID int     Unique ID of the object
File string     File with actions saved in it
FileType string     AC|bytecode
Indicates type of actions saved in a file - p-code actions or compiled actions bytecode
action records subnodes     Contains p-code actions used in the script

Action records

Add

<Add/>

Add2

<Add2/>

And

<And/>

AsciiToChar

<AsciiToChar/>

BitAnd

<BitAnd/>

BitLShift

<BitLShift/>

BitOr

<BitOr/>

BitRShift

<BitRShift/>

BitURShift

<BitURShift/>

BitXor

<BitXor/>

ByteCode

<ByteCode>

Item Type Required Default value Description, remark
node value hex     Compiled actions bytecode in a form of HEX string

Call

<Call/>

CallFunction

<CallFunction/>

CallMethod

<CallMethod/>

CastOp

<CastOp/>

CharToAscii

<CharToAscii/>

CloneSprite

<CloneSprite/>

ConstantPool

<ConstantPool>

Item Type Required Default value Description, remark
Variable subnodes     Variables for use in ConstantPool p-code command

Variable

<Variable [sp] />
Parent node: ConstantPool

Item Type Required Default value Description, remark
sp bool   false Indicates if '#$D' or '#$A' marks containted in a string representing variable should be replaced with #13 (CR) and #10 (LN) chars
node value string +   String representing variable

Decrement

<Decrement/>

DefineFunction

<DefineFunction Name Label />

Item Type Required Default value Description, remark
Name string +   Name of the function defined
Label string +   Label for the function

DefineFunction2

<DefineFunction2 Name RegisterCount Label />

Item Type Required Default value Description, remark
Name string +   Name of the function
RegisterCount int +   Number of registers for functions
Label string +   Label for the function

DefineLocal

<DefineLocal/>

DefineLocal2

<DefineLocal2/>

Delete

<Delete/>

Delete2

<Delete2/>

Divide

<Divide/>

EndDrag

<EndDrag/>

Enumerate

<Enumerate/>

Enumerate2

<Enumerate2/>

Equals

<Equals/>

Equals2

<Equals2/>

Extends

<Extends/>

FSCommand2

<FSCommand2/>
Only for Flash Lite 1.1

GetMember

<GetMember/>

GetProperty

<GetProperty/>

GetTime

<GetTime/>

GetURL

<GetURL URL Tafget />

Item Type Required Default value Description, remark
URL string +   URL link parameter for command
Target string +   Target parameter for URL link

GetURL2

<GetURL2 Method LoadTargetFlag LoadVariablesFlag />

Item Type Required Default value Description, remark
Method int +   Method used to open URL (1 = GET, 2= POST)
LoadTargetFlag bool +   Indicates if target should be loaded or not
LoadVariablesFlag bool +   Indicates if variables should be loaded or not

GetVariable

<GetVariable/>

GotoFrame

<GotoFrame Frame/>

Item Type Required Default value Description, remark
Frame int +   Frame number to go to

GotoFrame2

<GotoFrame2 PlayFlag/>

Item Type Required Default value Description, remark
PlayFlag bool +   Indicates if frame should be played

GoToLabel

<GoToLabel Label/>

Item Type Required Default value Description, remark
Label string +   Label of a frame to go to

Greater

<Greater/>

If

<If Label/>

Item Type Required Default value Description, remark
Label string +   Label for if construction beginning

ImplementsOp

<ImplementsOp/>

Increment

<Increment/>

InitArray

<InitArray/>

InitObject

<InitObject/>

InstanceOf

<InstanceOf/>

Jump

<Jump Label/>

Item Type Required Default value Description, remark
Label string +   Label indicating a place to jump to

Less

<Less/>

Less2

<Less2/>

MBAsciiToChar

<MBAsciiToChar/>

MBCharToAscii

<MBCharToAscii/>

MBStringExtract

<MBStringExtract/>

MBStringLength

<MBStringLength/>

Modulo

<Modulo/>

Multiply

<Multiply/>

NewMethod

<NewMethod/>

NewObject

<NewObject/>

NextFrame

<NextFrame/>

Not

<Not/>

Offset

<Offset Label/>

Item Type Required Default value Description, remark
Label string +   Indicates an offset marked with a label

Or

<Or/>

Play

<Play/>

Pop

<Pop/>

PreviousFrame

<PreviousFrame/>

Push

<Push>

Item Type Required Default value Description, remark
Variable subnodes +   Pushes a variable

Variable

<Variable Type />
Parent node: Push

Item Type Required Default value Description, remark
Type string +  

Indicates type of variable. Available values are:

str, float, null, undef, reg, bool, double, int, const8, const16, def

node value string +   Variable value in string representation

PushDuplicate

<PushDuplicate/>

RandomNumber

<RandomNumber/>

RemoveSprite

<RemoveSprite/>

Return

<Return/>

Return

<Return/>

SetProperty

<SetProperty/>

SetTarget

<SetTarget TargetName/>

Item Type Required Default value Description, remark
TargetName string +   Name of target

SetTarget2

<SetTarget2/>

SetVariable

<SetVariable/>

StackSwap

<StackSwap/>

StartDrag

<StartDrag/>

Stop

<Stop/>

StopSounds

<StopSounds/>

StoreRegister

<StoreRegister RegisterNumber/>

Item Type Required Default value Description, remark
RegisterNumber int +   Index of a register to store

StrictEquals

<StrictEquals/>

StringAdd

<StringAdd/>

StringEquals

<StringEquals/>

StringExtract

<StringExtract/>

StringGreater

<StringGreater/>

StringLess

<StringLess/>

Subtract

<Subtract/>

TargetPath

<TargetPath/>

Throw

<Throw/>

ToggleQuality

<ToggleQuality/>

ToInteger

<ToInteger/>

ToNumber

<ToNumber/>

ToString

<ToString/>

Trace

<Trace/>

Try

<Try Catch TryLabel [CatchLabel] [FinallyLabel]/>

Item Type Required Default value Description, remark
Catch int|string +   Catch construction name
TryLabel string +   Label of a code for "try" section
CatchLabel string     Label of a code for "catch" section
FinallyLabel string     Label of a code for "finally" section

TypeOf

<TypeOf/>

WaitForFrame2

<WaitForFrame2/>

With

<WaitForFrame Frame SkipCount/>

Item Type Required Default value Description, remark
Frame int +   Frame to operate with
SkipCount int +   Number of frames to skip

Shapes

DefineShape, DefineShape2, DefineShape3, DefineShape4

<DefineShape ID [XMin] [YMin] XMax YMax>
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   Unique ID of object
XMin int   0 X min coordinate of the object
YMin int   0 Y min coordinate of the object
XMax int +   X max coordinate of the object
YMax int +   Y max coordinate of the object
FillStyles subnode     Filling styles used in a shape object
LineStyles subnode     Line styles used in a shape object
Edges subnode     Edges records used in a shape object

FillStyles, NewFillStyles

<FillStyles> <NewFillStyles>
Parent node: DefineShape, DefineShape2, DefineShape3, DefineShape4

Item Type Required Default value Description, remark
Solid subnodes     Settings for Solid fill style
LinearGradient subnodes     Settings for Linear gradient style
RadialGradient subnodes     Settings for Radial gradientl style
FocalGradient subnodes     DefineShape4 only:
Settings for Focal gradient style
TileBitmap subnodes     Settings for bitmap tiling filling style
ClipBitmap subnodes     Settings for cliped bitmap filling style
NonSmoothTileBitmap subnodes     Settings for non-smooth bitmap tiling filling style
NonSmoothClipBitmap subnodes     Settings for non-smooth cliped bitmap filling style

Solid, SolidColor

<Solid Color />
Parent node: FillStyles

Item Type Required Default value Description, remark
Color color +   Color used in a solid filling style

LinearGradient, RadialGradient

<LinearGradient> <RadialGradient>
Parent node: FillStyles

Item Type Required Default value Description, remark
Matrix subnode +   Matrix settings for color transformation used in a gradient
Gradient subnodes +   Gradient settings

FocalGradient

<FocalGradient FocalPoint InterpolationMode SpreadMode>
Parent node: FillStyles

Item Type Required Default value Description, remark
FocalPoint float +   Focal point parameter for gradient
InterpolationMode int +   Interpolation mode value for gradient
SpreadMode int +   Spread mode value for gradient
Matrix subnode +   Matrix settings for gradient
Gradient subnodes +   Gradient settings for this gradient

Gradient

<Gradient Ratio Color />
Parent node: LinearGradient, RadialGradient

Item Type Required Default value Description, remark
Ratio int +   Ratio for the color
Color color +   Color value used in a gradient

TileBitmap, ClipBitmap, NonSmoothTileBitmap, NonSmoothClipBitmap

<TileBitmap ID>  <NonSmoothTileBitmap ID>
<ClipBitmap ID>  <NonSmoothClipBitmap ID>
Parent node: FillStyles

Item Type Required Default value Description, remark
ID int +   ID of bitmap to use
Matrix subnode +   Matrix settings for bitmap transformation

LineStyles, NewLineStyles

<LineStyles> <NewLineStyles>
Parent node: DefineShape, DefineShape2, DefineShape3, DefineShape4

Item Type Required Default value Description, remark
Style subnodes     DefineShape, DefineShape2, DefineShape3 only:
Line styles used in a parent shape object
Style2 subnodes    

DefineShape4 only:
Line styles used in a parent shape object

Style

<Style Width Color/>
Parent node: LineStyles, NewLineStyles

Item Type Required Default value Description, remark
Width int +   Width of the line used in a style
Color color +   Line color

Style2

<Style2 Width [HasFillFlag] [Color] CapStyle|(StartCapStyle EndCapStyle) JoinStyle NoClose NoHScaleFlag NoVScaleFlag PixelHintingFlag MiterLimitFactor>
Parent node: LineStyles, NewLineStyles

Item Type Required Default value Description, remark
Width int +   Width of the line
HasFillFlag bool   false Indicates if line has a fill
Color color HasFillFlag = false   Color of the line if fill not used for this style
CapStyle int +   Cap style value for a lines
StartCapStyle int +   Start cap style value for a lines
EndCapStyle int +   End cap style value for a lines
JoinStyle int +   Join style value for a lines
NoClose bool +   NoClose parameter for a style
NoHScaleFlag bool +   Don't use horizontal scaling for a style
NoVScaleFlag bool +   Don't use vertical scaling for a style
PixelHintingFlag bool +   Use pixel hinting of not for a style
MiterLimitFactor int JoinStyle = 2   MeterLimitFactor if JoinStyle is 2
any fill style subnode HasFillFlag = true   Fill style associated if style uses a fill instead of a color fill

Edges

<Edges>
Parent node: DefineShape, DefineShape2, DefineShape3, DefineShape4

Item Type Required Default value Description, remark
MoveTo subnodes     Contains coordinates of new point to start from
Line subnodes     Contains coordinates of point to draw a line to
Curve subnodes     Contains coordinates for curve drawing
End subnode     empty non required node

MoveTo

<MoveTo [X Y] [Line] [Fill0] [Fill1]>
Parent node: Edges

Item Type Required Default value Description, remark
X int     X coordinate of new point to start from
Y int     Y coordinate of new point to start from
Line int     Line associated with MoveTo command
Fill0 int     Existing fill style associated with MoveTo command
Fill1 int     Additional existing fill style associated with MoveTo command
NewFillStyles subnode     New fill styles to use with command
NewLineStyles subnode     New line styles to use with command

Line

<Line X Y/>
Parent node: Edges

Item Type Required Default value Description, remark
X int +   X coorindate of final point of a line
Y int +   Y coordinate of final point of a line

Curve

<Curve ControlX ControlY AnchorX AnchorY/>
Parent node: Edges

Item Type Required Default value Description, remark
ControlX int +   X coordinate of control point for curve
ControlY int +   Y coordinate of control point for curve
AnchorX int +   X coordinate of anchor point for curve
AnchorY int +   Y coordinate of anchor point for curve

Bitmaps

JPEGTables

<JPEGTables [File]/>
Parent node: SWF

Item Type Required Default value Description, remark
File string     JPG file to load
node value hex     JPG data (if file not used)

DefineBits, DefineBitsJPEG2

<DefineBits ID [File]/>
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   Unique ID of the tag
File string     File with BMP or JPG data
node value hex     Hex representation of JPG or BMP data (if file is not used)

DefineBitsJPEG3

<DefineBitsJPEG3 ID [File Alpha]/>
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   Unique ID of the object
File string     File to load JPG from
Alpha int     Size of alpha channel data
Data subnode     JPEG data represented in sub node value (hex format)
AlphaData subnode     Alpha channel data in sub node value (hex format)

DefineBitsLossless, DefineBitsLossless2

<DefineBitsLossless ID Width Height BitmapFormat File>
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   Unique ID of the object
Width int +   Width of the picture
Height int +   Height of the picture
BitmapFormat string +   Defines bit depth for picture
DefineBitsLossless: 8bit, 15bit, 24bit.
DefineBitsLossless2: 8bit, 32bit
File string     File to load BitMap data from
Data subnode     BitMap data in sub node value (hex format)

Shape Morphing

DefineMorphShape, DefineMorphShape2

<DefineMorphShape ID>
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   unique ID of the object
FillStyles subnode     Fill styles used in the object
LineStyles subnode     Line styles used in the object
StartShape subnode     Shape object to start morphing from
EndShape subnode     Shape object to morph into

FillStyles

<FillStyles>
Parent node: DefineMorphShape

Item Type Required Default value Description, remark
Solid subnodes     Solid fill style options
LinearGradient subnodes     Linear gradient style options
RadialGradient subnodes     Radial gradient style options
FocalGradient subnodes     Focal gradient style options
TileBitmap subnodes     Tiled bitmap fill style options
ClipBitmap subnodes     Clipped bitmap fill style options
NonSmoothTileBitmap subnodes     Non smooth tiled bitmap fill style options
NonSmoothClipBitmap subnodes     Non smooth clipped bitmap fill style options

Solid

<Solid StartColor EndColor/>
Parent node: FillStyles

Item Type Required Default value Description, remark
StartColor color +   Start color for solid fill style
EndColor color +   Second color for solid fill style

LinearGradient, RadialGradient, FocalGradient

<LinearGradient> <RadialGradient> <FocalGradient>
Parent node: FillStyles

Item Type Required Default value Description, remark
Start subnode +   Options for starting colors in gradient
End subnode +   Options for ending colors in gradient

Start, End

<Start> <End>
Parent node: LinearGradient, RadialGradient, FocalGragient

Item Type Required Default value Description, remark
FocalPoint float     Focal point for gradient. Only for
Matrix subnode +   Matrix defined for gradient
Gradient subnodes +   Gradient options

Gradient

<Gradient Ratio (StartColor|EndColor)/>
Parent node: Start, End

Item Type Required Default value Description, remark
Ratio int +   Ratio factor for gradient
StartColor color     First color for gradient
EndColor color     Second color for gradient

TileBitmap, ClipBitmap, NonSmoothTileBitmap, NonSmoothClipBitmap

<TileBitmap ID>  <NonSmoothTileBitmap ID>
<ClipBitmap ID>  <NonSmoothClipBitmap ID>
Parent node: FillStyles

Item Type Required Default value Description, remark
ID int +   ID of the bitmap object
StartMatrix subnode +   Matrix for gradient's start
EndMatrix subnode +   Matrix for gradient's end

LineStyles, NewLineStyles (for MorphShape)

<LineStyles> <NewLineStyles>
Parent node: DefineMorphShape, DefineMorphShape2

Item Type Required Default value Description, remark
Style subnodes    

DefineShape, DefineShape2, DefineShape3 only:
Line style defined for use with a parent shape object

Style2 subnodes    

DefineShape4 only:
Line style defined for use with a parent shape object

Style

<Style StartWidth StartColor EndWidth EndColor/>
Parent node: LineStyles, NewLineStyles

Item Type Required Default value Description, remark
StartWidth int +   Width of the beginning of a line used in the style
StartColor color +   Color of the beginning of a line used in the style
EndWidth int +   Width of the ending of a line used in the style
EndColor color +   Color of the ending of a line used in the style

Style2

<Style2 Width [HasFillFlag] [Color] CapStyle|(StartCapStyle EndCapStyle) JoinStyle NoClose NoHScaleFlag NoVScaleFlag PixelHintingFlag MiterLimitFactor>
Parent node: LineStyles, NewLineStyles

Item Type Required Default value Description, remark
StartWidth int +   Width of the beginning of a line used in the style
EndWidth int +   Width of the ending of a line used in the style
HasFillFlag bool   false Indicates if line style uses fill style
StartColor color HasFillFlag = false   Color of the beginning of a line used in the style
EndColor color HasFillFlag = false   Color of the ending of a line used in the style
CapStyle int +   CapStyle type index
StartCapStyle int +   CapStyle type index for beginning of the line for the style
EndCapStyle int +   CapStyle type index for ending of the line for the style
JoinStyle int +   JoinStyle type index
NoClose bool +   Indicates if NoClose for style should be used
NoHScaleFlag bool +   Indicates if no horizontal scaling for the style should be used
NoVScaleFlag bool +   Indicates if no vertical scaling for the style should be used
PixelHintingFlag bool +   Indicates if no pixel hinting effect for the style should be used
MiterLimitFactor int JoinStyle = 2   Defines Meter Limit Factor for the style
any morph fill style subnode HasFillFlag = true   Morph fill style associated with this line style

Fonts

DefineFont

<DefineFont ID>
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   Unique ID of the font object
Glyph subnodes +   Glyphs used in a font

Glyph

<Glyph Num>
Parent node: DefineFont

Item Type Required Default value Description, remark
Num int +   Index of the glyph
edge records subnodes +   Vector representation of the glyph

DefineFontInfo, DefineFontInfo2

<DefineFontInfo ID Name FontFlagsSmallText FontFlagsShiftJIS FontFlagsANSI [FontFlagsItalic] [FontFlagsBold] [FontFlagsWideCodes] [LanguageCode] >
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   Unique ID of the font object
Name string +   Font name
FontFlagsSmallText bool +   Indicates if small text effect should be used for font
FontFlagsShiftJIS bool +   Indicates if JIS encoding shift should be used for font
FontFlagsANSI bool +   Indicates if ANSI encoding should be used for font
FontFlagsItalic bool   false Indicates if italic text effect should be used for font
FontFlagsBold bool   false Indicates if bold text effect should be used for font
FontFlagsWideCodes bool   false DefineFontInfo2 only:
true by default
Indicates if UNICODE symbols are used in a font
LanguageCode int DefineFontInfo2   Font language code page
Glyph subnodes +   Glyphs used in a font

Glyph

<Glyph Num Code />
Parent node: DefineFontInfo

Item Type Required Default value Description, remark
Num int +   Index of a glyph
Code int +   Code of the symbol represented in a glyph

DefineFont2, DefineFont3

<DefineFont2 ID Name FontFlagsSmallText FontFlagsShiftJIS FontFlagsANSI [FontFlagsItalic] [FontFlagsBold] [FontFlagsWideCodes] [LanguageCode] [FontAscent FontDescent FontLeading] [File FileType] >
Parent node: SWF

Item Type Required Default value Description, remark
ID int +   Unique ID of the font object
Name string +   Font name
FontFlagsSmallText bool +