/// <summary> /// Initializes a new instance of the <see cref="ShockwaveFlash"/> class based on the specified array of bytes. /// </summary> /// <param name="data">The data containing the raw Shockwave Flash(SWF) file.</param> public ShockwaveFlash(byte[] data) { _flashData = data; Reader = new FlashReader(data); Tags = new List<FlashTag>(); Dictionary = new FlashDictionary(); Signature = Reader.ReadString(3); CompressWith = (CompressionStandard)Signature[0]; Version = Reader.ReadByte(); FileLength = Reader.ReadUInt32(); if (CompressWith == CompressionStandard.None) { ReadFrameInformation(); } else IsCompressed = true; }