Reading ActionScript Version with PHP

I took a look at the C# psuedo code, even tried busting out a hex editor to try to figure out where its stored, but I’m totally lost, don’t know that much about bytecode, etc.

Here is an example of the psuedo code:

Here is the information about the filetype:

http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf

Page 60 has the relevant information.

Would anyone be able to help me get it started or write it, because I’m totally lost. :sigh: