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
Exibir arquivo Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
GetSizeOf ( ) : int

Gets the size of.

Method Details

DefineButtonSoundTag() public method

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

DefineButtonSoundTag() public method

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