claus / as3swf

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

TagProductInfo.compileDate doesn't works with AIR SDK and ASC2 compiler #37

Closed sbrez closed 10 years ago

sbrez commented 10 years ago

I need to get the compiledate from the bytecode, but SWFs generated by ASC2 produce bytes in a different order than the ASC1 does.

claus commented 10 years ago

Got a small test SWF for me?

sbrez commented 10 years ago

Two little examples: https://dl.dropboxusercontent.com/u/9055945/CompileDate.zip

claus commented 10 years ago

Thanks. The compile date is 0 in CompileDateAIRSDK_ASC2.swf, so unfortunately there's nothing i can do about it.

sbrez commented 10 years ago

With SWFInspector by Adobe I can read decompressed bytecode were I can see the date, as you can see in the screenshot: screenshot 2014-08-06 19 50 43

claus commented 10 years ago

Right, but that's not the ProductInfo tag. It's the Metadata tag, see TagMetadata.

screenshot 2014-08-06 15 02 16