Width / Height Dimensions
Is it possible to get the width and height dimensions from a flash file such as a swf. Because I know this is possible with the getimagesize() for images but I tried it for a swf file and obvioulsy it didn't work since it isn't an image does anyone know a way to do it?
# 1 Re: Width / Height Dimensions
Well, Flash is vector based so it has no defined size. The size is defined when the params are set.
# 2 Re: Width / Height Dimensions
oh so its not possible? cause im making a script that uploads swf files and then puts it on a page of its own centered (got everything working) i just don't to restrict the swf files to a standard size but to there original size.
# 3 Re: Width / Height Dimensions
No. What I am saying is that you have to specify it when you embed the flash.
<embed src="main.swf" quality="high" loop="false" menu="false" bgcolor="#000000" width="550" height="400" name="flshmain" type="application/x-shockwave-flash">
# 4 Re: Width / Height Dimensions
but im using one script to pull different ones instead of having 10000 different files for each flash file and i don't want a standard size to be set if you understand me.
# 5 Re: Width / Height Dimensions
Is it possible to get the width and height dimensions from a flash file such as a swf. Because I know this is possible with the getimagesize() for images but I tried it for a swf file and obvioulsy it didn't work since it isn't an image does anyone know a way to do it?
The following links might help...
http://www.php.net/manual/en/function.getimagesize.php#55503
http://www.sephiroth.it/phpBB/archive/index.php/t-3646.html