sample #3
getting swf structure
  1. <?php
  2. include("sample_utils.php"); // need to include this to use mk
  3. $si = new MKswf_inspector("sample01.swf"); // read swf structure
  4. $xmlStr = $si->fetch_xml();
  5.  
  6. $xmlOut = fopen(SERVER_MKTMP ."sample01.xml", "w"); // save on file
  7. fwrite($xmlOut, $xmlStr, strlen($xmlStr)); // ...
  8. fclose($xmlOut); // ...
  9.  
  10. $str = trace_var("please look into tmp for file sample01.xml, it would contain", "", false, false, true);
  11. $str .= trace_var("<pre>" .htmlspecialchars($xmlStr) ."</pre>", "", true, true, true);
  12. echo show_content($str, basename(__FILE__));
  13. ?>
it will result in a xml file stored in tmp directory containing several info (header, tag header and, in some cases, hex data dump).
This is one of the most analysis tool for mk, here you will find some important info on various key contribs (image, fonts, sound and so on) and take an insight view to the structure of a given swf. Each node reflect the right sequence in the file. mikrokosmos