Recurity.Swf.ButtonRecord2.Parse C# (CSharp) Method

Parse() public method

public Parse ( Stream input ) : void
input Stream
return void
        public override void Parse( Stream input )
        {
            base.Parse( input );

            _ColorTransform = new CxFormWithAlpha( this.Version );
            _ColorTransform.Parse( input );
               //Log.Debug(this,  _ColorTransform.ToString() );

            if ( _ButtonHasFilterList )
            {
                _FilterList = new FilterList( this.Version );
                _FilterList.Parse( input );
            }

            if ( _ButtonHasBlendMode )
            {
                BinaryReader br = new BinaryReader( input );
                _BlendMode = br.ReadByte();

                if ( _BlendMode > 14 )
                {
                    throw new SwfFormatException( "ButtonRecord2 BlendMode > 14" );
                }
            }

               //Log.Debug(this,  this.ToString() );
        }