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

Inheritance: BaseTag, DefineTag
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
GetSizeOf ( ) : int

Gets the size of.

Method Details

DefineButtonSoundTag() public méthode

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

DefineButtonSoundTag() public méthode

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

GetSizeOf() protected méthode

Gets the size of.
protected GetSizeOf ( ) : int
Résultat int

ReadData() public méthode

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

Serialize() public méthode

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Résultat void

UpdateData() public méthode

see base class
public UpdateData ( byte version ) : void
version byte
Résultat void