Example #1
0
        internal SpriteFrame(ActionBlock[] actions, List<ushort> removed, List<PlaceObject2Tag> modified)
        {
            removed.Sort();
            modified.Sort((a, b) => a.Depth.CompareTo(b.Depth));

            Actions = actions;
            RemovedObjects = removed.ToArray();
            ModifiedObjects = modified.ToArray();

            removed.Clear();
            modified.Clear();
        }
Example #2
0
 public void Load(SwfStream stream, uint length, byte version)
 {
     Actions = ActionRecord.ReadActions(stream, null);
 }
Example #3
0
        public void SetClipActions(ClipActions actions)
        {
            foreach (var action in actions.Records)
            {
                foreach (var e in action.Events)
                    _eventActions[(int)e] = action.Actions;

                if ((action.EventFlags & ClipEventFlags.KeyPress) != 0)
                {
                    _keyPressKeyCode = action.KeyCode;
                    _keyPress = action.Actions;
                }
            }
        }
Example #4
0
 public ButtonCondAction(ActionBlock actions)
 {
     mFlags = 0x08; // Release
     Actions = actions;
 }