Detect size of swf file
I'm using this code to embed swf to website, but height and wight should be detected automatically.
as you may see here width="600" and height="450", but it should be done automaticly.
<OBJECT ID="aa" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="600" height="450" align="center">
<PARAM NAME=movie VALUE="MYFLASHFILE">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="MYFLASHFILE" width="600" height="450" quality=high TYPE="application/x-shockwave-flash"
Thanks, it's worked, I didn't know that I can get size of swf using getimagesize() function :).
Originally Posted by chris.upjohn
Just posting it here in case it's helpful for others.