I want to allow CMS web users to download Flash files and include them in content. I will probably use SWFObject to render the flash, but I need the width and height. Is it possible to determine this through C # at boot time?
Thanks.
Most likely there is an easier way, but
you can download "FlashTools.zip" from http://blogs.msdn.com/mswanson/archive/2006/10/15/example-c-code-for-reading-flash-swf-files.aspx and compile the project. Then add the link to the assembly "FlashTools.dll". Then you can get the height / width using:
SWFFile swf = new SWFFile(fileLocation); Response.Write("Height:" + swf.FrameHeight/20 + " Width:" + swf.FrameWidth/20);
, .
, SWF ( SWF--).
, SWF HTML, (Flash lingo ) SWF - SWF , , HTML, SWF .