public DefineSoundTag(HeaderRecord header, FlashReader input) : base(header) { Id = input.ReadUInt16(); Format = input.ReadUB(4); Rate = input.ReadUB(2); Size = input.ReadUB(1); SoundType = input.ReadUB(1); SoundSampleCount = input.ReadUInt32(); SoundData = input.ReadBytes(header.Length - 7); }
public FileAttributesTag(HeaderRecord header, FlashReader input) : base(header) { input.Align(); input.ReadUB(1); // Reserved | Must equal '0'. UseDirectBlit = (input.ReadUB(1) == 1); UseGPU = (input.ReadUB(1) == 1); HasMetadata = (input.ReadUB(1) == 1); ActionScript3 = (input.ReadUB(1) == 1); NoCrossDomainCache = (input.ReadUB(1) == 1); input.ReadUB(1); // Reserved | Must equal '0'. UseNetwork = (input.ReadUB(1) == 1); input.ReadUB(24); // Reserved | Must equal '0'. }
public RectangeRecord(FlashReader input) { int maxBitCount = input.ReadUB(5); X = input.ReadSB(maxBitCount); Width = (input.ReadSB(maxBitCount) / 20); Y = input.ReadSB(maxBitCount); Height = (input.ReadSB(maxBitCount) / 20); }
public RectangleRecord(FlashReader reader) { int bits = reader.ReadUB(5); X = reader.ReadSB(bits); TwipsWidth = reader.ReadSB(bits); Width = (TwipsWidth / 20); Y = reader.ReadSB(bits); TwipsHeight = reader.ReadSB(bits); Height = (TwipsHeight / 20); }