astfilename = "c:\myflashfile.swf"
<!--#include file="swfparser.asp" -->

After I've done this, I will have access to the following variables:

This code can also be expanded to grab some addiitional information such as frame rate.

Download the code

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

Published October 31, 2001 · Updated September 17, 2005
Categorized as ASP
Short URL:


6 Comments · RSS feed
Jonathan Snook said on November 20, 2003

Just a quick note that this only works on Flash files up to version 5. In Flash 6, they implemented compression using the zlib format. If somebody comes up with a vbscript or javascript approach to decompress it, it should be easy enough to grab these parameters then.

Bhavin patel said on October 18, 2005

hi all...

can u plz send a clear idea about how to find out the heigh and width parameters of uploaded files...


Mark said on October 07, 2006

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?

Jonathan Snook said on October 08, 2006

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.

Prakash said on November 01, 2006

I have checked the swf information reading code...Its not working for flash version 7...

PLease advice me.

Thanx & Rgds,

Bruce said on September 01, 2007

I will use this code for flash games page on my sport web page.

Thank you very much.

Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.