claus / as3swf

Low level Actionscript 3 library to parse, create, modify and publish SWF files.
MIT License
525 stars 127 forks source link

Little parse/unparse structure change for ProductInfo tag #3

Closed imcotton closed 13 years ago

imcotton commented 13 years ago

For instance, if a SWF generated by Flex SDK 3.4.1, actually, we couldn't get the last version number "1".

The change has been made according the code below:

public void productInfo(ProductInfo tag)
{
    tagw.write32( tag.getProduct() );
    tagw.write32( tag.getEdition() );
    tagw.write( new byte[] { tag.getMajorVersion(), tag.getMinorVersion() } );
    tagw.write64( tag.getBuild() );
    tagw.write64( tag.getCompileDate() );
    encodeTag(tag);
}

via TagEncoder.java

claus commented 13 years ago

Thanks! 88