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
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Méthodes publiques

Свойство Type Description
MIME_TYPE string

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Init ( ) : void

Inits this instance.

Private Methods

Méthode Description
tagList_TagAdded ( BaseTag tagAdded ) : void

A new tag was added to the tag collection

Method Details

Add() public méthode

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.
Résultat void

GetNewDefineId() public méthode

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
Résultat ushort

Init() protected méthode

Inits this instance.
protected Init ( ) : void
Résultat void

InjectTags() public méthode

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

Serialize() public méthode

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

Swf() public méthode

Creates a new Swf instance.
public Swf ( ) : System
Résultat System

Swf() public méthode

Creates a new Swf instance.
public Swf ( SwfHeader header ) : System
header SwfHeader Header.
Résultat System

Swf() public méthode

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.
Résultat System

UpdateData() public méthode

Re-calc swf binary data.
public UpdateData ( ) : void
Résultat void

Property Details

MIME_TYPE public_oe static_oe property

Flash movie mime-type
public static string MIME_TYPE
Résultat string