/// <summary> /// Read <see cref="SwfOp.ByteCode.Actions.ActionSetTarget">ActionSetTarget</see> from swf. /// </summary> private ActionSetTarget ReadActionSetTarget(BinaryReader br) { int len = Convert.ToInt32(br.ReadUInt16()); ActionSetTarget a = new ActionSetTarget(BinaryStringRW.ReadString(br)); //a.ByteSize = len+3; return(a); }
ActionBase IActionVisitor <XElement, ActionBase> .Visit(ActionSetTarget action, XElement xAction) { action.TargetName = xAction.RequiredStringAttribute("label"); return(action); }
XElement IActionVisitor <XElement, XElement> .Visit(ActionSetTarget action, XElement arg) { arg.Add(new XAttribute("label", action.TargetName)); return(arg); }