Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

getting SWF dimensions (width and height )

Name: Anonymous 2007-04-29 14:04 ID:a78rIU2Q

Hi everyone.

I finally got my site to work. The only problem I have is with properly displaying flash files. I have to specify height and width for every file.

Something like...

<embed src="something.swf" quality=high type="application/x-shockwave-flash" width="640" height="480"></embed>

 otherwise the animation won't be displayed properly (it will show nasty stuff on right and left or just won't look good).

I have loads of swf files I need to get this somehow automated. There has to be a way to either get the around this problem or to somehow "detect" the swf dimensions.

Is there any "trick" for this?

I'm using PHP and GNU/Linux.

Name: Anonymous 2007-04-29 14:47 ID:O1P4wkGQ

No one likes a website with loads of swf files.
You might try a macro though or if the dimensions you want are somewhere in the file, use awk on it and get some raw data like "filename xxx yyy" and convert that to your embed tags.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List