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

DefineButtonSoundTag defines the sounds that are played when an event occurs in a button.

A sound is played for only a subset of the events that a button responds to:

  • RollOver: The cursor enters the active area of the button.
  • RollOut: The cursor exits the active area of the button.
  • Press: The mouse button is clicked and the cursor is inside the active area of the button.
  • Release: The mouse button is released while the cursor is inside the active area of the button.

This tag was introduced in Flash 2.

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

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

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

Creates a new DefineButtonSoundTag instance.

DefineButtonSoundTag ( ushort buttonId, ushort buttonSoundChar, SoundInfo buttonSoundInfo, ushort buttonSoundChar1, SoundInfo buttonSoundInfo1, ushort buttonSoundChar2, SoundInfo buttonSoundInfo2, ushort buttonSoundChar3, SoundInfo buttonSoundInfo3 ) : System

Creates a new DefineButtonSoundTag 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.

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

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

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

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

Creates a new DefineButtonSoundTag instance.
public DefineButtonSoundTag ( ushort buttonId, ushort buttonSoundChar, SoundInfo buttonSoundInfo, ushort buttonSoundChar1, SoundInfo buttonSoundInfo1, ushort buttonSoundChar2, SoundInfo buttonSoundInfo2, ushort buttonSoundChar3, SoundInfo buttonSoundInfo3 ) : System
buttonId ushort Button id.
buttonSoundChar ushort Button sound char.
buttonSoundInfo SwfDotNet.IO.Tags.Types.SoundInfo Button sound info.
buttonSoundChar1 ushort Button sound char1.
buttonSoundInfo1 SwfDotNet.IO.Tags.Types.SoundInfo Button sound info1.
buttonSoundChar2 ushort Button sound char2.
buttonSoundInfo2 SwfDotNet.IO.Tags.Types.SoundInfo Button sound info2.
buttonSoundChar3 ushort Button sound char3.
buttonSoundInfo3 SwfDotNet.IO.Tags.Types.SoundInfo Button sound info3.
Результат 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