Reading parameters of a Macromedia Flash (SWF) file using ASP
The way I use this is as follows:
astfilename = "c:\myflashfile.swf"
<!--#include file="swfparser.asp" -->
After I've done this, I will have access to the following variables:
- strFilepath : which should be the same as astfilename
- isFlash : a boolean variable
- intVersion : what version of Flash
- swfwidth : the width of the Flash
- swfheight : the height of the Flash
This code can also be expanded to grab some addiitional information such as frame rate.
Some time after I created this article I came across another site who created a VBScript class to accomplish the same task. Check out this user tip on 4guysfromrolla.com.
can u plz send a clear idea about how to find out the heigh and width parameters of uploaded files...
one line of code includes
if ucase(strTag) = "FWS" then isFlash=true
Well, a compressed flash file is "CWS", and you need gzip compression to uncompress everything from the 8th byte and on. Can you help us out with that?
I never got around to developing an ASP gzip decompressor. Creating one isn't something I'm interested in as ASP is certainly not as popular as it once was. Good luck with your project.
I have checked the swf information reading code...Its not working for flash version 7...
PLease advice me.
Thanx & Rgds,
I will use this code for flash games page on my sport web page.
Thank you very much.