示例#1
0
 public static XElement ToXml(ClipActionsList clipActions)
 {
     var res = new XElement("events");
     foreach (var clipAction in clipActions.Records) {
         res.Add(XClipActionRecord.ToXml(clipAction));
     }
     return res;
 }
示例#2
0
 public static void ReadClipActions(this ISwfStreamReader reader, byte swfVersion, ClipActionsList clipActions)
 {
     clipActions.Reserved = reader.ReadUInt16();
     clipActions.Flags    = reader.ReadClipEventFlags(swfVersion);
     reader.ReadClipActionRecords(swfVersion, clipActions.Records);
 }
示例#3
0
 public static void WriteClipActions(this ISwfStreamWriter writer, byte swfVersion, ClipActionsList clipActions)
 {
     writer.WriteUInt16(clipActions.Reserved);
     writer.WriteClipEventFlags(swfVersion, clipActions.Flags);
     writer.WriteClipActionRecords(swfVersion, clipActions.Records);
 }
示例#4
0
 public static void ReadClipActions(this ISwfStreamReader reader, byte swfVersion, ClipActionsList clipActions)
 {
     clipActions.Reserved = reader.ReadUInt16();
     clipActions.Flags = reader.ReadClipEventFlags(swfVersion);
     reader.ReadClipActionRecords(swfVersion, clipActions.Records);
 }
示例#5
0
 public static void WriteClipActions(this ISwfStreamWriter writer, byte swfVersion, ClipActionsList clipActions)
 {
     writer.WriteUInt16(clipActions.Reserved);
     writer.WriteClipEventFlags(swfVersion, clipActions.Flags);
     writer.WriteClipActionRecords(swfVersion, clipActions.Records);
 }
示例#6
0
 public static void FromXml(XElement xClipActions, ClipActionsList clipActions)
 {
     foreach (var xClipAction in xClipActions.Elements()) {
         clipActions.Records.Add(XClipActionRecord.FromXml(xClipAction));
     }
 }