C# Класс SwfDotNet.IO.Swf

The Swf class is basically a data structure for swf data, containing header informations and a collection of swf tags.
Наследование: IBaseTagContainer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MIME_TYPE string

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Init ( ) : void

Inits this instance.

Приватные методы

Метод Описание
tagList_TagAdded ( BaseTag tagAdded ) : void

A new tag was added to the tag collection

Описание методов

Add() публичный Метод

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.
Результат void

GetNewDefineId() публичный Метод

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
Результат ushort

Init() защищенный Метод

Inits this instance.
protected Init ( ) : void
Результат void

InjectTags() публичный Метод

Injects a range of tags in the current Swf.
public InjectTags ( BaseTagCollection values ) : void
values SwfDotNet.IO.Tags.BaseTagCollection The values.
Результат void

Serialize() публичный Метод

Serializes the swf object in a XmlWriter.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Результат void

Swf() публичный Метод

Creates a new Swf instance.
public Swf ( ) : System
Результат System

Swf() публичный Метод

Creates a new Swf instance.
public Swf ( SwfHeader header ) : System
header SwfHeader Header.
Результат System

Swf() публичный Метод

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.
Результат System

UpdateData() публичный Метод

Re-calc swf binary data.
public UpdateData ( ) : void
Результат void

Описание свойств

MIME_TYPE публичное статическое свойство

Flash movie mime-type
public static string MIME_TYPE
Результат string