C# Класс SwfDotNet.IO.Tags.DefineButtonTag

DefineButtonTag defines the appearance of a button and the actions performed when the button is clicked.

A DefineButtonTag object must contain at least one ButtonRecord object. If more than one button record is defined for a given button state then each shape will be displayed by the button. The order in which the shapes are displayed is determined by the layer assigned to each ButtonRecord object.

This tag was introduced in Flash 1.

Наследование: BaseTag, DefineTag
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DefineButtonTag ( ) : System

Creates a new DefineButtonTag instance.

DefineButtonTag ( ushort buttonId, ButtonRecordCollection characters, byte actions ) : System

Creates a new DefineButtonTag instance.

ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

see base class

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

UpdateData ( byte version ) : void

see base class

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

Метод Описание
GetSizeOf ( ) : int

Gets the size of.

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

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

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

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

Creates a new DefineButtonTag instance.
public DefineButtonTag ( ushort buttonId, ButtonRecordCollection characters, byte actions ) : System
buttonId ushort Button id.
characters SwfDotNet.IO.Tags.Types.ButtonRecordCollection Characters.
actions byte Actions.
Результат System

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

Gets the size of.
protected GetSizeOf ( ) : int
Результат int

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

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
Результат void

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

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

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

see base class
public UpdateData ( byte version ) : void
version byte
Результат void