swf.tag
index
tag.py

 
Modules
       
Image
StringIO
math
struct

 
Classes
       
__builtin__.object
Tag
DefinitionTag
SWFTimelineContainer
TagDefineSprite
TagDefineBits
TagDefineBitsJPEG2
TagDefineBitsJPEG3
TagDefineBitsLossless
TagDefineBitsLossless2
TagDefineFont
TagDefineFont2
TagDefineFont3
TagDefineMorphShape
TagDefineShape
TagDefineShape2
TagDefineShape3
TagDefineShape4
TagDefineText
TagDefineText2
DisplayListTag
TagPlaceObject
TagPlaceObject2
TagPlaceObject3
TagRemoveObject
TagRemoveObject2
TagCSMTextSettings
TagDefineFontAlignZones
TagDefineFontName
TagDefineSceneAndFrameLabelData
TagDoABC
TagDoAction
TagEnd
TagFileAttributes
TagFrameLabel
TagJPEGTables
TagMetadata
TagSetBackgroundColor
TagShowFrame
TagSymbolClass
TagFactory

 
class DefinitionTag(Tag)
    
Method resolution order:
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
name
The tag name
version

 
class DisplayListTag(Tag)
    
Method resolution order:
DisplayListTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data and other attributes defined here:
characterId = -1

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
name
The tag name
version

 
class SWFTimelineContainer(DefinitionTag)
    
Method resolution order:
SWFTimelineContainer
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse_tag(self, data)
parse_tags(self, data, version=1)

Methods inherited from DefinitionTag:
parse(self, data, length, version=1)

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
name
The tag name
version

 
class Tag(__builtin__.object)
     Methods defined here:
__init__(self)
__str__(self)
parse(self, data, length, version=1)
Parses this tag

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
name
The tag name
version

 
class TagCSMTextSettings(Tag)
    
Method resolution order:
TagCSMTextSettings
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 74

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineBits(DefinitionTag)
    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).
NOTE:
    Only one JPEGTables tag is allowed in a SWF file, and thus all bitmaps 
    defined with DefineBits must share common encoding tables.
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.
 
 
Method resolution order:
TagDefineBits
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
name
type

Data and other attributes defined here:
TYPE = 6
bitmapData = None

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagDefineBitsJPEG2(TagDefineBits)
    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.
  
The minimum file format version for this tag is SWF 2. The minimum file format 
version for embedding PNG of GIF89a data is SWF 8.
 
 
Method resolution order:
TagDefineBitsJPEG2
TagDefineBits
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 21
bitmapType = 0

Data and other attributes inherited from TagDefineBits:
bitmapData = None

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineBitsJPEG3(TagDefineBitsJPEG2)
    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.
 
 
Method resolution order:
TagDefineBitsJPEG3
TagDefineBitsJPEG2
TagDefineBits
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 35

Data and other attributes inherited from TagDefineBitsJPEG2:
bitmapType = 0

Data and other attributes inherited from TagDefineBits:
bitmapData = None

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineBitsLossless(DefinitionTag)
    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).
The minimum file format version for this tag is SWF 2.
 
 
Method resolution order:
TagDefineBitsLossless
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
name
type

Data and other attributes defined here:
TYPE = 20
bitmapData = None
bitmap_color_size = 0
bitmap_format = 0
bitmap_height = 0
bitmap_width = 0
image_buffer = ''
padded_width = 0
zlib_bitmap_data = None

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagDefineBitsLossless2(TagDefineBitsLossless)
    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.
The minimum file format version for this tag is SWF 3.
 
 
Method resolution order:
TagDefineBitsLossless2
TagDefineBitsLossless
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 36

Methods inherited from TagDefineBitsLossless:
parse(self, data, length, version=1)

Data and other attributes inherited from TagDefineBitsLossless:
bitmapData = None
bitmap_color_size = 0
bitmap_format = 0
bitmap_height = 0
bitmap_width = 0
image_buffer = ''
padded_width = 0
zlib_bitmap_data = None

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineFont(DefinitionTag)
    The DefineFont tag defines the shape outlines of each glyph used in a 
particular font. Only the glyphs that are used by subsequent DefineText 
tags are actually defined.
DefineFont tags cannot be used for dynamic text. Dynamic text requires 
the DefineFont2 tag. 
The minimum file format version is SWF 1.
 
 
Method resolution order:
TagDefineFont
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
unitDivisor
version

Data and other attributes defined here:
TYPE = 10
glyphShapeTable = []

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineFont2(TagDefineFont)
    
Method resolution order:
TagDefineFont2
TagDefineFont
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
unitDivisor
version

Data and other attributes defined here:
TYPE = 48

Data and other attributes inherited from TagDefineFont:
glyphShapeTable = []

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineFont3(TagDefineFont2)
    
Method resolution order:
TagDefineFont3
TagDefineFont2
TagDefineFont
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 75

Methods inherited from TagDefineFont2:
parse(self, data, length, version=1)

Data descriptors inherited from TagDefineFont2:
unitDivisor

Data and other attributes inherited from TagDefineFont:
glyphShapeTable = []

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineFontAlignZones(Tag)
    
Method resolution order:
TagDefineFontAlignZones
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 73

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineFontName(Tag)
    
Method resolution order:
TagDefineFontName
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 88

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineMorphShape(DefinitionTag)
    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.
The minimum file format version is SWF 3.
 
 
Method resolution order:
TagDefineMorphShape
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
morph_fill_styles
Return list of SWFMorphFillStyle
morph_line_styles
Return list of SWFMorphLineStyle
name
type
version

Data and other attributes defined here:
TYPE = 46

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineSceneAndFrameLabelData(Tag)
    
Method resolution order:
TagDefineSceneAndFrameLabelData
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 86

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineShape(DefinitionTag)
    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.
The minimum file format version is SWF 1.
 
 
Method resolution order:
TagDefineShape
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
__str__(self)
export(self, handler=None)
Export this tag
parse(self, data, length, version=1)

Data descriptors defined here:
name
shape_bounds
Return the bounds of this tag as a SWFRectangle
shapes
Return list of SWFShape
type

Data and other attributes defined here:
TYPE = 2

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagDefineShape2(TagDefineShape)
    DefineShape2 extends the capabilities of DefineShape with the ability 
to support more than 255 styles in the style list and multiple style 
lists in a single shape.
The minimum file format version is SWF 2.
 
 
Method resolution order:
TagDefineShape2
TagDefineShape
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 22

Methods inherited from TagDefineShape:
__str__(self)
export(self, handler=None)
Export this tag
parse(self, data, length, version=1)

Data descriptors inherited from TagDefineShape:
shape_bounds
Return the bounds of this tag as a SWFRectangle
shapes
Return list of SWFShape

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineShape3(TagDefineShape2)
    DefineShape3 extends the capabilities of DefineShape2 by extending 
all of the RGB color fields to support RGBA with opacity information.
The minimum file format version is SWF 3.
 
 
Method resolution order:
TagDefineShape3
TagDefineShape2
TagDefineShape
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 32

Methods inherited from TagDefineShape:
__str__(self)
export(self, handler=None)
Export this tag
parse(self, data, length, version=1)

Data descriptors inherited from TagDefineShape:
shape_bounds
Return the bounds of this tag as a SWFRectangle
shapes
Return list of SWFShape

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineShape4(TagDefineShape3)
    
Method resolution order:
TagDefineShape4
TagDefineShape3
TagDefineShape2
TagDefineShape
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 83

Methods inherited from TagDefineShape:
__str__(self)
export(self, handler=None)
Export this tag

Data descriptors inherited from TagDefineShape:
shape_bounds
Return the bounds of this tag as a SWFRectangle
shapes
Return list of SWFShape

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineSprite(SWFTimelineContainer)
    The DefineSprite tag defines a sprite character. It consists of 
a character ID and a frame count, followed by a series of control 
tags. The sprite is terminated with an End tag.
The length specified in the Header reflects the length of the 
entire DefineSprite tag, including the ControlTags field.
Definition tags (such as DefineShape) are not allowed in the 
DefineSprite tag. All of the characters that control tags refer to 
in the sprite must be defined in the main body of the file before 
the sprite is defined.
The minimum file format version is SWF 3.
 
 
Method resolution order:
TagDefineSprite
SWFTimelineContainer
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
__str__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
name
type

Data and other attributes defined here:
TYPE = 39
frameCount = 0

Methods inherited from SWFTimelineContainer:
parse_tag(self, data)
parse_tags(self, data, version=1)

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagDefineText(DefinitionTag)
    The DefineText tag defines a block of static text. It describes the font, 
size, color, and exact position of every character in the text object.
The minimum file format version is SWF 1.
 
 
Method resolution order:
TagDefineText
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
records
Return list of SWFTextRecord
type
version

Data and other attributes defined here:
TYPE = 11
textBounds = None
textMatrix = None

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDefineText2(TagDefineText)
    The DefineText tag defines a block of static text. It describes the font, 
size, color, and exact position of every character in the text object.
The minimum file format version is SWF 3.
 
 
Method resolution order:
TagDefineText2
TagDefineText
DefinitionTag
Tag
__builtin__.object

Methods defined here:
__init__(self)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 33

Methods inherited from TagDefineText:
parse(self, data, length, version=1)

Data descriptors inherited from TagDefineText:
records
Return list of SWFTextRecord

Data and other attributes inherited from TagDefineText:
textBounds = None
textMatrix = None

Data descriptors inherited from DefinitionTag:
characterId
Return the character ID

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDoABC(Tag)
    
Method resolution order:
TagDoABC
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 82

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagDoAction(Tag)
    DoAction instructs Flash Player to perform a list of actions when the 
current frame is complete. The actions are performed when the ShowFrame 
tag is encountered, regardless of where in the frame the DoAction tag appears.
Starting with SWF 9, if the ActionScript3 field of the FileAttributes tag is 1, 
the contents of the DoAction tag will be ignored.
 
 
Method resolution order:
TagDoAction
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
actions
Return list of SWFActionRecord
level
name
type
Return the SWF tag type
version
Return the minimum SWF version

Data and other attributes defined here:
TYPE = 12

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagEnd(Tag)
    The End tag marks the end of a file. This must always be the last tag in a file. 
The End tag is also required to end a sprite definition.
The minimum file format version is SWF 1.
 
 
Method resolution order:
TagEnd
Tag
__builtin__.object

Methods defined here:
__init__(self)
__str__(self)

Data descriptors defined here:
name
The tag name
type

Data and other attributes defined here:
TYPE = 0

Methods inherited from Tag:
parse(self, data, length, version=1)
Parses this tag

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagFactory(__builtin__.object)
     Class methods defined here:
create(cls, type) from __builtin__.type
Return the created tag by specifiying an integer

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagFileAttributes(Tag)
    The FileAttributes tag defines characteristics of the SWF file. This tag 
is required for SWF 8 and later and must be the first tag in the SWF file. 
Additionally, the FileAttributes tag can optionally be included in all SWF 
file versions.
The HasMetadata flag identifies whether the SWF file contains the Metadata 
tag. Flash Player does not care about this bit field or the related tag but 
it is useful for search engines.
The UseNetwork flag signifies whether Flash Player should grant the SWF file 
local or network file access if the SWF file is loaded locally. The default 
behavior is to allow local SWF files to interact with local files only, and 
not with the network. However, by setting the UseNetwork flag, the local SWF 
can forfeit its local file system access in exchange for access to the 
network. Any version of SWF can use the UseNetwork flag to set the file 
access for locally loaded SWF files that are running in Flash Player 8 or later.
 
 
Method resolution order:
TagFileAttributes
Tag
__builtin__.object

Methods defined here:
__init__(self)
__str__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 69

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagFrameLabel(Tag)
    The FrameLabel tag gives the specified Name to the current frame. 
ActionGoToLabel uses this name to identify the frame.
The minimum file format version is SWF 3.
 
 
Method resolution order:
TagFrameLabel
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 43
frameName = ''
namedAnchorFlag = False

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagJPEGTables(Tag)
    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 an erroneous header of 0xFF, 0xD9, 0xFF, 0xD8 before 
the JPEG SOI marker.
The minimum file format version for this tag is SWF 1.
 
 
Method resolution order:
TagJPEGTables
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
name
type

Data and other attributes defined here:
TYPE = 8
jpegTables = None

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagMetadata(Tag)
    
Method resolution order:
TagMetadata
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 77

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagPlaceObject(DisplayListTag)
    The PlaceObject tag adds a character to the display list. The CharacterId 
identifies the character to be added. The Depth field specifies the 
stacking order of the character. The Matrix field species the position, 
scale, and rotation of the character. If the size of the PlaceObject tag 
exceeds the end of the transformation matrix, it is assumed that a 
ColorTransform field is appended to the record. The ColorTransform field 
specifies a color effect (such as transparency) that is applied to the character. 
The same character can be added more than once to the display list with 
a different depth and transformation matrix.
 
 
Method resolution order:
TagPlaceObject
DisplayListTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
__str__(self)
parse(self, data, length, version=1)
Parses this tag

Data descriptors defined here:
filters
Returns a list of filter
name
type

Data and other attributes defined here:
TYPE = 4
bitmapCache = 0
blendMode = 0
className = None
clipActions = None
clipDepth = 0
colorTransform = None
depth = 0
hasBlendMode = False
hasCacheAsBitmap = False
hasCharacter = False
hasClassName = False
hasClipActions = False
hasClipDepth = False
hasColorTransform = False
hasFilterList = False
hasImage = False
hasMatrix = False
hasMove = False
hasName = False
hasRatio = False
instanceName = None
matrix = None
ratio = 0

Data and other attributes inherited from DisplayListTag:
characterId = -1

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagPlaceObject2(TagPlaceObject)
    The PlaceObject2 tag extends the functionality of the PlaceObject tag. 
The PlaceObject2 tag can both add a character to the display list, and 
modify the attributes of a character that is already on the display list. 
The PlaceObject2 tag changed slightly from SWF 4 to SWF 5. In SWF 5, 
clip actions were added.
The tag begins with a group of flags that indicate which fields are 
present in the tag. The optional fields are CharacterId, Matrix, 
ColorTransform, Ratio, ClipDepth, Name, and ClipActions. 
The Depth field is the only field that is always required.
The depth value determines the stacking order of the character. 
Characters with lower depth values are displayed underneath characters 
with higher depth values. A depth value of 1 means the character is 
displayed at the bottom of the stack. Any given depth can have only one 
character. This means a character that is already on the display list can 
be identified by its depth alone (that is, a CharacterId is not required).
The PlaceFlagMove and PlaceFlagHasCharacter tags indicate whether a new 
character is being added to the display list, or a character already on the 
display list is being modified. The meaning of the flags is as follows:
 
- PlaceFlagMove = 0 and PlaceFlagHasCharacter = 1 A new character 
  (with ID of CharacterId) is placed on the display list at the specified
  depth. Other fields set the attributes of this new character. 
- PlaceFlagMove = 1 and PlaceFlagHasCharacter = 0
  The character at the specified depth is modified. Other fields modify the
  attributes of this character. Because any given depth can have only one 
  character, no CharacterId is required.
- PlaceFlagMove = 1 and PlaceFlagHasCharacter = 1 
  The character at the specified Depth is removed, and a new character 
  (with ID of CharacterId) is placed at that depth. Other fields set the 
  attributes of this new character.
  For example, a character that is moved over a series of frames has 
  PlaceFlagHasCharacter set in the first frame, and PlaceFlagMove set in 
  subsequent frames. The first frame places the new character at the desired 
  depth, and sets the initial transformation matrix. Subsequent frames replace 
  the transformation matrix of the character at the desired depth.
  
The optional fields in PlaceObject2 have the following meaning:
- The CharacterId field specifies the character to be added to the display list. 
  CharacterId is used only when a new character is being added. If a character 
  that is already on the display list is being modified, the CharacterId field is absent.
- The Matrix field specifies the position, scale and rotation of the character 
  being added or modified.
- The ColorTransform field specifies the color effect applied to the character 
  being added or modified.
- The Ratio field specifies a morph ratio for the character being added or modified. 
  This field applies only to characters defined with DefineMorphShape, and controls 
  how far the morph has progressed. A ratio of zero displays the character at the start 
  of the morph. A ratio of 65535 displays the character at the end of the morph. 
  For values between zero and 65535 Flash Player interpolates between the start and end 
  shapes, and displays an in- between shape.
- The ClipDepth field specifies the top-most depth that will be masked by the character 
  being added. A ClipDepth of zero indicates that this is not a clipping character.
- The Name field specifies a name for the character being added or modified. This field 
  is typically used with sprite characters, and is used to identify the sprite for 
  SetTarget actions. It allows the main file (or other sprites) to perform actions 
  inside the sprite (see 'Sprites and Movie Clips' on page 231).
- The ClipActions field, which is valid only for placing sprite characters, defines 
  one or more event handlers to be invoked when certain events occur.
 
 
Method resolution order:
TagPlaceObject2
TagPlaceObject
DisplayListTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 26

Methods inherited from TagPlaceObject:
__str__(self)

Data descriptors inherited from TagPlaceObject:
filters
Returns a list of filter

Data and other attributes inherited from TagPlaceObject:
bitmapCache = 0
blendMode = 0
className = None
clipActions = None
clipDepth = 0
colorTransform = None
depth = 0
hasBlendMode = False
hasCacheAsBitmap = False
hasCharacter = False
hasClassName = False
hasClipActions = False
hasClipDepth = False
hasColorTransform = False
hasFilterList = False
hasImage = False
hasMatrix = False
hasMove = False
hasName = False
hasRatio = False
instanceName = None
matrix = None
ratio = 0

Data and other attributes inherited from DisplayListTag:
characterId = -1

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagPlaceObject3(TagPlaceObject2)
    
Method resolution order:
TagPlaceObject3
TagPlaceObject2
TagPlaceObject
DisplayListTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
name
type

Data and other attributes defined here:
TYPE = 70

Data descriptors inherited from TagPlaceObject2:
level
version

Methods inherited from TagPlaceObject:
__str__(self)

Data descriptors inherited from TagPlaceObject:
filters
Returns a list of filter

Data and other attributes inherited from TagPlaceObject:
bitmapCache = 0
blendMode = 0
className = None
clipActions = None
clipDepth = 0
colorTransform = None
depth = 0
hasBlendMode = False
hasCacheAsBitmap = False
hasCharacter = False
hasClassName = False
hasClipActions = False
hasClipDepth = False
hasColorTransform = False
hasFilterList = False
hasImage = False
hasMatrix = False
hasMove = False
hasName = False
hasRatio = False
instanceName = None
matrix = None
ratio = 0

Data and other attributes inherited from DisplayListTag:
characterId = -1

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagRemoveObject(DisplayListTag)
    The RemoveObject tag removes the specified character (at the specified depth) 
from the display list.
The minimum file format version is SWF 1.
 
 
Method resolution order:
TagRemoveObject
DisplayListTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)
Parses this tag

Data descriptors defined here:
name
type

Data and other attributes defined here:
TYPE = 5
depth = 0

Data and other attributes inherited from DisplayListTag:
characterId = -1

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagRemoveObject2(TagRemoveObject)
    The RemoveObject2 tag removes the character at the specified depth 
from the display list. 
The minimum file format version is SWF 3.
 
 
Method resolution order:
TagRemoveObject2
TagRemoveObject
DisplayListTag
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 28

Data and other attributes inherited from TagRemoveObject:
depth = 0

Data and other attributes inherited from DisplayListTag:
characterId = -1

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TagSetBackgroundColor(Tag)
    The SetBackgroundColor tag sets the background color of the display. 
The minimum file format version is SWF 1.
 
 
Method resolution order:
TagSetBackgroundColor
Tag
__builtin__.object

Methods defined here:
__init__(self)
__str__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
name
type

Data and other attributes defined here:
TYPE = 9
color = 0

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagShowFrame(Tag)
    The ShowFrame tag instructs Flash Player to display the contents of the 
display list. The file is paused for the duration of a single frame.
The minimum file format version is SWF 1.
 
 
Method resolution order:
TagShowFrame
Tag
__builtin__.object

Methods defined here:
__init__(self)
__str__(self)

Data descriptors defined here:
name
type

Data and other attributes defined here:
TYPE = 1

Methods inherited from Tag:
parse(self, data, length, version=1)
Parses this tag

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
level
version

 
class TagSymbolClass(Tag)
    
Method resolution order:
TagSymbolClass
Tag
__builtin__.object

Methods defined here:
__init__(self)
parse(self, data, length, version=1)

Data descriptors defined here:
level
name
type
version

Data and other attributes defined here:
TYPE = 76

Methods inherited from Tag:
__str__(self)

Data descriptors inherited from Tag:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)