예제 #1
0
        public ClipActions(SwfReader r, bool isSwf6Plus)
        {
            r.GetUI16(); // reserved
            ClipEvents = (ClipEvents)r.GetBits(32);
            ClipActionRecords = new List<ClipActionRecord>();

            bool hasMoreRecords = true;
            while (hasMoreRecords)
            {
                ClipActionRecord car = new ClipActionRecord(r, isSwf6Plus);
                ClipActionRecords.Add(car);
                if ((uint)car.ClipEvents == 0)
                {
                    hasMoreRecords = false;
                }
            }
        }
예제 #2
0
        public ClipActions(SwfReader r, bool isSwf6Plus)
        {
            r.GetUI16();             // reserved
            ClipEvents        = (ClipEvents)r.GetBits(32);
            ClipActionRecords = new List <ClipActionRecord>();

            bool hasMoreRecords = true;

            while (hasMoreRecords)
            {
                ClipActionRecord car = new ClipActionRecord(r, isSwf6Plus);
                ClipActionRecords.Add(car);
                if ((uint)car.ClipEvents == 0)
                {
                    hasMoreRecords = false;
                }
            }
        }