[Flashcoders] Extracting SWF height and width from php

2006-12-11 Thread dj
Is it possible to extract the height and width of a swf file with a command in php? Or is there another way to do this. it's because we want to make a table height dynamic to the size of the swf file. Just curious? Thanks, patrick ___

Re: [Flashcoders] Extracting SWF height and width from php

2006-12-11 Thread Mick G
On idea... You could use Stage.width and Stage.height in Flash - send those variables via Javscript/externalInterface and use a javascript function to adjust the height/width of the table. On 12/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is it possible to extract the height and width

Re: [Flashcoders] Extracting SWF height and width from php

2006-12-11 Thread Ian Thomas
The getimagesize() function does it for you. http://uk2.php.net/manual/en/function.getimagesize.php HTH, Ian On 12/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is it possible to extract the height and width of a swf file with a command in php? Or is there another way to do this.

Re: [Flashcoders] Extracting SWF height and width from php

2006-12-11 Thread Micky Hulse
function get_img_size($loc) { # Get the image size of the file. # Array returned gets populated with getimagesize() values: /* Array ( [0] = 60 [1] = 41 [2] = 2 [3] = width=60 height=41 [bits]