Beispiel #1
0
        public void Load(SwfStream stream, uint length, byte version)
        {
            CharacterID = stream.ReadUShort();
            FrameCount = stream.ReadUShort();

            List<ISwfControlTag> tags = new List<ISwfControlTag>(256);
            ISwfTag tag;

            do
            {
                tag = stream.ReadTag();
                if (tag == null)
                    continue;

                CheckTagValidity(tag);

                if (tag is EndTag)
                    break;
                else
                    tags.Add((ISwfControlTag)tag);
            } while (true);

            Tags = tags.ToArray();
        }