Exemple #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;
 }
Exemple #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);
 }
Exemple #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);
 }
 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);
 }
 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);
 }
Exemple #6
0
 public static void FromXml(XElement xClipActions, ClipActionsList clipActions)
 {
     foreach (var xClipAction in xClipActions.Elements()) {
         clipActions.Records.Add(XClipActionRecord.FromXml(xClipAction));
     }
 }