Now comes the hard part. I need to extract enough info out of the files to be able to generate the appropriate embedded object in the HTML.
The important parts are the width and height but I would also like to be able to verify the version used (to stop uploading of Flash 6 files) and whether the file is actually a valid Flash file.<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= +"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0 +" ID=test WIDTH=270 HEIGHT=250> <PARAM NAME=movie VALUE="/flash/welcome3.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=salign VALUE=RB> <PARAM NAME=bgcolor VALUE=#cccccc> <EMBED src="/flash/welcome3.swf" menu=false quality=high salig +n=RB align="center" bgcolor=#cccccc WIDTH=270 HEIGHT=250 TYPE="appli +cation/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shoc +kwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> </OBJECT>
I have looked at CPAN with no luck. Perl::Flash and Flash::SWF handle flash but these seem to be based on version 3 or 4 and have not been updated for ages.
Does anyone know how to do this?
Thanks in advance
UnderMine
In reply to Extracting info from SWF Files by UnderMine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |