Пример #1
0
        public UnsupportedTag(ShockwaveFlash flash, RecordHeader header, bool forceLong = false)
        {
            _flash     = flash;
            _forceLong = forceLong;

            Header   = header;
            Position = _flash.Position;

            Data = _flash.ReadUI8Block((int)header.Length);
        }
Пример #2
0
        public DefineBinaryDataTag(ShockwaveFlash flash, RecordHeader header)
        {
            _flash = flash;

            Position = flash.Position;
            Header   = header;

            CharacterId = _flash.ReadUI16();
            Reserved    = _flash.ReadUI32();
            _data       = _flash.ReadUI8Block((int)header.Length - 6);
        }
Пример #3
0
        public Rect(ShockwaveFlash flash)
        {
            int pos   = flash.Position;
            int nBits = (int)flash.ReadUB(5);

            _x          = flash.ReadSB(nBits);
            _twipsWidth = flash.ReadSB(nBits);
            _width      = _twipsWidth / 20;

            _y           = flash.ReadSB(nBits);
            _twipsHeight = flash.ReadSB(nBits);
            _height      = _twipsHeight / 20;

            _data = flash.ReadUI8Block(flash.Position - pos, pos);
        }