/// <summary> /// Read <see cref="SwfOp.ByteCode.Actions.ActionGotoFrame">ActionGotoFrame</see> from swf. /// </summary> private ActionGotoFrame ReadActionGotoFrame(BinaryReader br) { int len = Convert.ToInt32(br.ReadUInt16()); short f = br.ReadInt16(); ActionGotoFrame a = new ActionGotoFrame(f); //a.ByteSize = len+3; return(a); }
ActionBase IActionVisitor <XElement, ActionBase> .Visit(ActionGotoFrame action, XElement xAction) { action.Frame = xAction.RequiredUShortAttribute("frame"); return(action); }
XElement IActionVisitor <XElement, XElement> .Visit(ActionGotoFrame action, XElement param) { return(new XElement(XActionNames.FromAction(action), new XAttribute("frame", action.Frame))); }