Ejemplo n.º 1
0
        public ClipActionRecord(SwfStream stream)
        {
            EventFlags = stream.ReadClipEventFlags();
            if (EventFlags == ClipEventFlags.None) return;

            uint size = stream.ReadUInt();
            if ((EventFlags & ClipEventFlags.KeyPress) != 0) KeyCode = new KeyCode(stream.ReadByte());

            Actions = ActionRecord.ReadActions(stream, size);
        }
Ejemplo n.º 2
0
        public ClipActions(SwfStream stream)
        {
            stream.ReadUShort();
            AllEvents = stream.ReadClipEventFlags();

            var records = new List<ClipActionRecord>();
            ClipActionRecord current;

            while(true)
            {
                current = new ClipActionRecord(stream);
                if (current.EventFlags == ClipEventFlags.None)
                    break;
                records.Add(current);
            }

            Records = records.ToArray();
        }