예제 #1
0
        /// <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);
        }
예제 #2
0
 ActionBase IActionVisitor <XElement, ActionBase> .Visit(ActionSetTarget action, XElement xAction)
 {
     action.TargetName = xAction.RequiredStringAttribute("label");
     return(action);
 }
예제 #3
0
 XElement IActionVisitor <XElement, XElement> .Visit(ActionSetTarget action, XElement arg)
 {
     arg.Add(new XAttribute("label", action.TargetName));
     return(arg);
 }