<?php include("sample_utils.php"); // need to include this to use mk $mksi = new MKswf_info("sample01.swf"); // a specific class to read some header data // default directory is media/flash $si = $mksi->fetch_assoc(); // this ia a utility function, ouputs result on browser $str = trace_array_assoc($si, "<strong>swf header</strong>", true, true); ?>
here the output:
s02_swf_header.phpas you may notice, it return more data, in tmp you wil find a temporary file.
____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 _______________________