Recurity.Swf.TagHandler.PlaceObject2.ParsePlaceObject2Data C# (CSharp) Method

ParsePlaceObject2Data() protected method

protected ParsePlaceObject2Data ( ) : void
return void
        protected void ParsePlaceObject2Data()
        {
            BinaryReader br = new BinaryReader(_dataStream);

            _Depth = br.ReadUInt16();

            if (_PlaceFlagHasCharacter)
            {
                _CharacterID = br.ReadUInt16();
            }

            if (_PlaceFlagHasMatrix)
            {
                base._TransformMatrix = new Matrix(this.Version);
                base._TransformMatrix.Parse(_dataStream);
            }

            if (_PlaceFlagHasColorTransform)
            {
                _CxFormWithAlpha = new CxFormWithAlpha(this.Version);
                _CxFormWithAlpha.Parse(_dataStream);
            }

            if (_PlaceFlagHasRatio)
            {
                _Ratio = br.ReadUInt16();
            }

            if (_PlaceFlagHasName)
            {
                _Name = Helper.SwfStrings.SwfString(this.Version, br);
            }

            if (_PlaceFlagHasClipDepth)
            {
                _ClipDepth = br.ReadUInt16();
            }

            if (_PlaceFlagHasClipActions)
            {
                if (this.Version < 5)
                {
                    throw new SwfFormatException("ClipActions in PlaceObject2 for Swf Version < 5");
                }
                _ClipActions = new ClipActions(this.Version);
                _ClipActions.Parse(_dataStream);
            }
            Log.Debug(this,  this.ToString() );
        }