<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: How to get a width and a height from an SWF</title>
	<atom:link href="http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/feed/" rel="self" type="application/rss+xml" />
	<link>http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/</link>
	<description>F-IN-BOX News, Tips and Tricks</description>
	<pubDate>Fri, 21 Nov 2008 12:50:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: selee</title>
		<link>http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/#comment-7004</link>
		<dc:creator>selee</dc:creator>
		<pubDate>Fri, 26 Sep 2008 01:38:42 +0000</pubDate>
		<guid isPermaLink="false">http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/#comment-7004</guid>
		<description>Thank you so much..
It would be very helpfull to me.</description>
		<content:encoded><![CDATA[<p>Thank you so much..<br />
It would be very helpfull to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/#comment-2159</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 26 Dec 2007 13:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/#comment-2159</guid>
		<description>Unfortunaly, I haven't version for Perl...</description>
		<content:encoded><![CDATA[<p>Unfortunaly, I haven&#8217;t version for Perl&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vyacheslav</title>
		<link>http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/#comment-2142</link>
		<dc:creator>Vyacheslav</dc:creator>
		<pubDate>Wed, 26 Dec 2007 02:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/#comment-2142</guid>
		<description>What about Perl version?</description>
		<content:encoded><![CDATA[<p>What about Perl version?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/#comment-256</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 12 Aug 2007 22:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://f-in-box.com/blog/how-to-get-a-width-and-a-height-from-an-swf/#comment-256</guid>
		<description>PHP version

[source:php]
function b2i($d,$o,$l) {
        $s=(ord($d[$o/8])&#62;&#62;(7-$o%8))&#38;1; $r=0;
        for ($i=$o+1;$i&#62;(7-$i%8))&#38;1;
                $r=($r";
$s=unpack("V",substr($d,4,4)); echo "FileSize : ".$s[1]." bytes";

if (substr($d,0,3)=="CWS") $d=substr($d,0,8).gzinflate(substr($d,8));

$nb=ord($d[8])&#62;&#62;3; // bytes needed
echo "Bytes required : ".$nb."";

echo "width=".(($this-&#62;b2i($d,8*8+5+$nb,$nb)-$this-&#62;b2i($d,8*8+5,$nb))/20)."";
echo "height=".(($this-&#62;b2i($d,8*8+5+3*$nb,$nb)-$this-&#62;b2i($d,8*8+5+2*$nb,$nb))/20)."";
echo "";
[/source]

---

Thanks to TCK</description>
		<content:encoded><![CDATA[<p>PHP version</p>
<p>[source:php]<br />
function b2i($d,$o,$l) {<br />
        $s=(ord($d[$o/8])&gt;&gt;(7-$o%8))&amp;1; $r=0;<br />
        for ($i=$o+1;$i&gt;(7-$i%8))&amp;1;<br />
                $r=($r&#8221;;<br />
$s=unpack(&#8221;V&#8221;,substr($d,4,4)); echo &#8220;FileSize : &#8220;.$s[1].&#8221; bytes&#8221;;</p>
<p>if (substr($d,0,3)==&#8221;CWS&#8221;) $d=substr($d,0,8).gzinflate(substr($d,8));</p>
<p>$nb=ord($d[8])&gt;&gt;3; // bytes needed<br />
echo &#8220;Bytes required : &#8220;.$nb.&#8221;";</p>
<p>echo &#8220;width=&#8221;.(($this-&gt;b2i($d,8*8+5+$nb,$nb)-$this-&gt;b2i($d,8*8+5,$nb))/20).&#8221;";<br />
echo &#8220;height=&#8221;.(($this-&gt;b2i($d,8*8+5+3*$nb,$nb)-$this-&gt;b2i($d,8*8+5+2*$nb,$nb))/20).&#8221;";<br />
echo &#8220;&#8221;;<br />
[/source]</p>
<p>&#8212;</p>
<p>Thanks to TCK</p>
]]></content:encoded>
	</item>
</channel>
</rss>
