C# Class 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.

Inheritance: BaseTag, DefineTag
显示文件 Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
GetSizeOf ( ) : int

Gets the size of.

Method Details

DefineButtonTag() public method

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

DefineButtonTag() public method

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.
return System

GetSizeOf() protected method

Gets the size of.
protected GetSizeOf ( ) : int
return int

ReadData() public method

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
return void

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void

UpdateData() public method

see base class
public UpdateData ( byte version ) : void
version byte
return void