SWF Dimensions
- Started
- Last post
- 8 Responses
- ukit
Is there any way to just get the width and height of an exported SWF, without using Flash, Photoshop etc
- fate_0
hmm good question.
My first thought: If you can load the SWF in question into another Flash movie (loadMovie into a blank MovieClip), then this parent Flash movie could then get the dimensions of the MovieClip once it's been expanded to contain the entire child SWF.
You can then communicate it to HTML/JS as needed.
Not elegant. I'm sure someone knows a better way.
- fate_0
Also, if you need to do it server-side, this might be a good start. It's ASP, but the methodology is the same across any language...just read the file header and extract the info.
- falcadia0
You can use Dreamweaver's flash embed. Insert > Media > Swf. I believe it will insert at proper stage width and height. Then you can look for the values in the property inspector.
- armed_rob0
why do you want to do that?
- fate_0
armed_rob: I'm assuming he has to do this through the browser.
For instance, he might need to properly set the Width/Height size of the embedding code for a number of SWF's that all have different sizes.
- ukit0
This is actually not for me but for someone else here who is not technical, just needs to get the dimensions of a number of SWF files.
- thatblokemike0
I imagine a command line tool like flasm could be utilised in a script that could peruse a number of .swf files in a directory pushing the dimensions out to a text file or to where ever you like I suppose.
- BattleAxe0
open in browser, get the web developer add on for fire fox (or any add on with ruler)and use the ruler to measure it