Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know the dimension of swf file without Flash?

I've a swf file and i want to embed this file into HTML page but i don't know the exact dimension of swf . Windows XP file properties doesn't show the dimension and I don't have Adobe Flash software. Then how can i know the Dimension.

like image 933
Jitendra Vyas Avatar asked May 12 '09 06:05

Jitendra Vyas


People also ask

How can I play SWF files without Flash?

There are ways to open an SWF file without Flash as well. You can use the tools like SWF players or use the hidden Flash Player by Adobe. You can also convert these files to open.

How do I view a SWF file and edit it?

swf files cannot be edited directly. Convert the swf file into the source file. Source file basically decompiles the swf files and break it into the text,images or other things that you have used to make the swf file. Once you have the separate things you can edit them and again compile and make your swf file.

How do I find my SWF code?

SWF files can be viewed by pasting the url in the address box. 2. After pasting the code in the Notepad, simply replace the url of the swf file.

Are SWF files Flash?

SWF file is an Adobe flash file format which contains videos and vector based animations.


2 Answers

There is a collection of utilities for working with SWF files called SWFTOOLS. You can grab the Windows binary from the Download page.

One of the tools in this package is swfdump, which can tell you the dimension of an SWF file. It also can produce the proper HTML code for embedding (output from my Linux box):

# swfdump -X flash.swf
-X 724
# swfdump -Y flash.swf
-Y 147
# swfdump -E flash.swf
<object type="application/x-shockwave-flash"
 data="flash.swf" width="724" height="147">
<param name="movie" value="flash.swf"/>
<param name="play" value="true"/>
<param name="quality" value="high"/>
</object>
like image 123
viam0Zah Avatar answered Oct 02 '22 15:10

viam0Zah


Open it from your hard drive using Flash player -double click it- and then use JR Screen Ruler to look at its dimensions. If it happens to open in full screen mode just press ESC ;)

like image 27
victor hugo Avatar answered Oct 02 '22 16:10

victor hugo