sample #2
snorkeling in an swf (header info)
  1. <?php
  2. include("sample_utils.php"); // need to include this to use mk
  3. $mksi = new MKswf_info("sample01.swf"); // a specific class to read some header data
  4. // default directory is media/flash
  5. $si = $mksi->fetch_assoc();
  6.  
  7. // this ia a utility function, ouputs result on browser
  8. $str = trace_array_assoc($si, "<strong>swf header</strong>", true, true);
  9. echo show_content($str, basename(__FILE__));
  10. ?>

here the output:

s02_swf_header.php
____swf header _______________________
swfFileName: sample01.swf
swfFileSize: 118
swfVersion: 6
stageWidth: 120
stageHeight: 120
fps: 12
frameCount: 1
backgroundColor: #FFFFFF
isCompressed: no
____end of: swf header _______________________
as you may notice, it return more data, in tmp you wil find a temporary file.
As you may notice, stageWidth and stageHeight refer to the movie canvas, not the real boundary of movie content. Canvas dimensions are ignored by flash player when you call loadMovie or use MovieClipLoader, the boundary is used instead.
mikrokosmos