# Determine AVM1 vs AVM2 for bulk SWF files

**URL:** <https://forum.kirupa.com/t/determine-avm1-vs-avm2-for-bulk-swf-files/306808>\
**Category:** flash\
**Created:** [March 22, 2010, 6:34pm UTC](https://forum.kirupa.com/t/determine-avm1-vs-avm2-for-bulk-swf-files/306808 "2010-03-22T18:34:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![8bitninja](https://avatars.discourse-cdn.com/v4/letter/8/e9c0ed/32.png) [@8bitninja](https://forum.kirupa.com/u/8bitninja)\
**Post date:** [March 22, 2010, 6:34pm UTC](https://forum.kirupa.com/t/determine-avm1-vs-avm2-for-bulk-swf-files/306808/1 "2010-03-22T18:34:20Z")

</div>

Let’s say we have a directory with 10,000 SWF files.

There is a great need to determine what SWF files are AVM1 (AS2 or earlier), and what SWF files are AVM2 (AS3).

Can anyone point me in the right direction to determine the AVM version for a large amount of files?

It seems like I could write a script that loops through every file, checks some magic hex value in the file’s binary data, and records the result somewhere.

Does this sound feasible? Is there already something like this? Does anyone know what data in the SWF itself holds the AVM version?
