flex - Mxmlc generates different binary on same source -


i'm compiling single .as file swf using mxmlc.

whenever run mxmlc, results different in size when source code not changed.

for example,

// test.as package {     public class test     {     } } 

and generates .swf using mxmlc :

mxmlc test.as 

and result size differs 461 465 bytes.

i suppose it's because of timestamp-like things in compiler, not find how fix or disable that. ideas on generating "same binary same source" ? thanks!

finally, found metadata tag (tag type = 77) , undocumented 'product info' tag (tag type = 41) both contains compliation time.

i succeeded remove timestamps following steps :

1. open swf , un-zlib 2. clear timestamps in metadata tag , product info tag 3. re-zlib , make new .swf 

but i'm not happy that, needs work on swf file. want find easier way. there may 'bypass product info' option on mxmlc..

you can find more information on swf file structure , metadata tag on http://www.adobe.com/devnet/swf.html , product info on http://wahlers.com.br/claus/blog/undocumented-swf-tags-written-by-mxmlc/


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -