Пример #1
0
        /// <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);
        }
Пример #2
0
 ActionBase IActionVisitor <XElement, ActionBase> .Visit(ActionGotoFrame action, XElement xAction)
 {
     action.Frame = xAction.RequiredUShortAttribute("frame");
     return(action);
 }
Пример #3
0
 XElement IActionVisitor <XElement, XElement> .Visit(ActionGotoFrame action, XElement param)
 {
     return(new XElement(XActionNames.FromAction(action), new XAttribute("frame", action.Frame)));
 }