/// <summary> /// see <see cref="SwfDotNet.IO.Tags.BaseTag">base class</see> /// </summary> public override void ReadData(byte version, BufferedBinaryReader binaryReader) { RecordHeader rh = new RecordHeader(); rh.ReadData(binaryReader); soundId = binaryReader.ReadUInt16(); soundInfo = new SoundInfo(); soundInfo.ReadData(binaryReader); }
/// <summary> /// see <see cref="SwfDotNet.IO.Tags.BaseTag">base class</see> /// </summary> public override void ReadData(byte version, BufferedBinaryReader binaryReader) { RecordHeader rh = new RecordHeader(); rh.ReadData(binaryReader); buttonId = binaryReader.ReadUInt16(); buttonSoundChar = binaryReader.ReadUInt16(); buttonSoundInfo = null; if (buttonSoundChar != 0) { buttonSoundInfo = new SoundInfo(); buttonSoundInfo.ReadData(binaryReader); } buttonSoundChar1 = binaryReader.ReadUInt16(); buttonSoundInfo1 = null; if (buttonSoundChar1 != 0) { buttonSoundInfo1 = new SoundInfo(); buttonSoundInfo1.ReadData(binaryReader); } buttonSoundChar2 = binaryReader.ReadUInt16(); buttonSoundInfo2 = null; if (buttonSoundChar2 != 0) { buttonSoundInfo2 = new SoundInfo(); buttonSoundInfo2.ReadData(binaryReader); } buttonSoundChar3 = binaryReader.ReadUInt16(); buttonSoundInfo3 = null; if (buttonSoundChar3 != 0) { buttonSoundInfo3 = new SoundInfo(); buttonSoundInfo3.ReadData(binaryReader); } }