Read Flash Format File Information with .NET

by stilling2006 on 2008-11-10 22:29:49

There has always been an issue where, when users upload Flash files, they need to input the width and height of the Flash file as well; otherwise, during display, the lack of these values can cause the Flash proportions to be incorrect.

After searching on Google, I found some JavaScript solutions for obtaining the width and height of a Flash file, but these only work after the Flash has been loaded, not before. Additionally, it's not possible to dynamically change the width and height of the `` tag. Most importantly, there are Flash Player security warning messages, so I abandoned the idea of reading the information on the client side and instead considered doing it on the server side.