C# Class SwfDotNet.IO.Swf

The Swf class is basically a data structure for swf data, containing header informations and a collection of swf tags.
Inheritance: IBaseTagContainer
Mostra file Open project: bladecoding/SwfExport Class Usage Examples

Public Properties

Property Type Description
MIME_TYPE string

Public Methods

Method Description
Add ( BaseTag tag ) : void

Adds the specified tag to the Swf tag collection. This methods is the same as swf.Tags.Add method, used only to simplify the writing process.

GetNewDefineId ( ) : ushort

Gets a new define character id. Each Define type tag must have an unique character Id. Use this method to get a new Id that is not used for the moment.

InjectTags ( BaseTagCollection values ) : void

Injects a range of tags in the current Swf.

Serialize ( XmlWriter writer ) : void

Serializes the swf object in a XmlWriter.

Swf ( ) : System

Creates a new Swf instance.

Swf ( SwfHeader header ) : System

Creates a new Swf instance.

Swf ( SwfHeader header, BaseTagCollection tagList ) : System

Creates a new Swf instance.

UpdateData ( ) : void

Re-calc swf binary data.

Protected Methods

Method Description
Init ( ) : void

Inits this instance.

Private Methods

Method Description
tagList_TagAdded ( BaseTag tagAdded ) : void

A new tag was added to the tag collection

Method Details

Add() public method

Adds the specified tag to the Swf tag collection. This methods is the same as swf.Tags.Add method, used only to simplify the writing process.
public Add ( BaseTag tag ) : void
tag SwfDotNet.IO.Tags.BaseTag Tag.
return void

GetNewDefineId() public method

Gets a new define character id. Each Define type tag must have an unique character Id. Use this method to get a new Id that is not used for the moment.
public GetNewDefineId ( ) : ushort
return ushort

Init() protected method

Inits this instance.
protected Init ( ) : void
return void

InjectTags() public method

Injects a range of tags in the current Swf.
public InjectTags ( BaseTagCollection values ) : void
values SwfDotNet.IO.Tags.BaseTagCollection The values.
return void

Serialize() public method

Serializes the swf object in a XmlWriter.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void

Swf() public method

Creates a new Swf instance.
public Swf ( ) : System
return System

Swf() public method

Creates a new Swf instance.
public Swf ( SwfHeader header ) : System
header SwfHeader Header.
return System

Swf() public method

Creates a new Swf instance.
public Swf ( SwfHeader header, BaseTagCollection tagList ) : System
header SwfHeader Swf Header.
tagList SwfDotNet.IO.Tags.BaseTagCollection Swf Tag list sequence.
return System

UpdateData() public method

Re-calc swf binary data.
public UpdateData ( ) : void
return void

Property Details

MIME_TYPE public_oe static_oe property

Flash movie mime-type
public static string MIME_TYPE
return string