|
-
May 10th, 2006, 08:44 PM
#1
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?
-
May 10th, 2006, 09:55 PM
#2
Re: Width / Height Dimensions
Well, Flash is vector based so it has no defined size. The size is defined when the params are set.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
May 11th, 2006, 06:15 PM
#3
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.
-
May 11th, 2006, 09:30 PM
#4
Re: Width / Height Dimensions
No. What I am saying is that you have to specify it when you embed the flash.
Code:
<embed src="main.swf" quality="high" loop="false" menu="false" bgcolor="#000000" width="550" height="400" name="flshmain" type="application/x-shockwave-flash">
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
May 11th, 2006, 11:31 PM
#5
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.
-
May 12th, 2006, 02:21 AM
#6
Re: Width / Height Dimensions
 Originally Posted by Forsakenblade
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/functio...size.php#55503
http://www.sephiroth.it/phpBB/archiv...hp/t-3646.html
A few friendly reminders: * Use Code Tags when posting code.
* Rate good replies/post by clicking "Rate this Post" and leaving a positive feedback. * Things should be made as simple as possible, but not any simpler. -- Albert Einstein
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|