<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>达达&#039;s Blog &#187; SWF</title>
	<atom:link href="http://www.isdada.com/tag/swf/feed" rel="self" type="application/rss+xml" />
	<link>http://www.isdada.com</link>
	<description></description>
	<lastBuildDate>Fri, 11 Nov 2011 08:07:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SWFObject的自适应高度问题</title>
		<link>http://www.isdada.com/the-problam-of-swfobject-autosize.html</link>
		<comments>http://www.isdada.com/the-problam-of-swfobject-autosize.html#comments</comments>
		<pubDate>Fri, 08 May 2009 03:07:12 +0000</pubDate>
		<dc:creator>达达</dc:creator>
				<category><![CDATA[Flash Platform]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[SWF]]></category>
		<category><![CDATA[SWFObject]]></category>

		<guid isPermaLink="false">http://www.asflex.cn/?p=1138</guid>
		<description><![CDATA[因为FireFox和IE的高度计算方式不同，所以导致了SWFObject嵌入SWF文件时的某些问题。 这两天就遇到了奇怪的问题，在嵌入SWF的时候将高度设置为100%的时候，IE显示正常，FF下愣是不显示，搜索了一下发现官网的第一条就是关于这个问题的（SWFObject Wiki FAQ）。官网的建议是这样的： &#60;style type=&#34;text/css&#34; media=&#34;screen&#34;&#62; &#160;&#160;&#160;&#160;&#160; html, body, #containera, #containerb { height:100%; } &#160;&#160;&#160;&#160;&#160; body { margin:0; padding:0; overflow:hidden; } &#160;&#160;&#160; &#60;/style&#62; 不过这种灵活性比较低。我现在遇到的情况是这样的，布局分三块： 第一块：头部和导航栏 第二块：主内容 第三块：底部 第一块和底部的高度的确定的，分别为120px和80px。主内容块的高度为整个可视区域减去120px+80px； 因此就需要对SWFObject推荐的嵌入代码作如下修改： &#60;script type=&#34;text/javascript&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; var flashvars = {}; &#160;&#160;&#160;&#160;&#160;&#160;&#160; var params = { &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; menu: &#34;false&#34;, &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scale: &#34;noScale&#34;, &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bgcolor: &#34;#FFFFFF&#34; &#160;&#160;&#160;&#160;&#160;&#160;&#160; }; &#160;&#160;&#160;&#160;&#160;&#160;&#160; window.onresize <a href='http://www.isdada.com/the-problam-of-swfobject-autosize.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>因为FireFox和IE的高度计算方式不同，所以导致了SWFObject嵌入SWF文件时的某些问题。</p>
<p>这两天就遇到了奇怪的问题，在嵌入SWF的时候将高度设置为100%的时候，IE显示正常，FF下愣是不显示，搜索了一下发现官网的第一条就是关于这个问题的（<a href="http://code.google.com/p/swfobject/wiki/faq" target="_blank">SWFObject Wiki FAQ</a>）。官网的建议是这样的：</p>
<p>&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;    <br />&#160;&#160;&#160;&#160;&#160; html, body, #containera, #containerb { height:100%; }     <br />&#160;&#160;&#160;&#160;&#160; body { margin:0; padding:0; overflow:hidden; }     <br />&#160;&#160;&#160; &lt;/style&gt;</p>
<p>不过这种灵活性比较低。我现在遇到的情况是这样的，布局分三块：</p>
<p>第一块：头部和导航栏</p>
<p>第二块：主内容</p>
<p>第三块：底部</p>
<p>第一块和底部的高度的确定的，分别为120px和80px。主内容块的高度为整个可视区域减去120px+80px；</p>
<p>因此就需要对SWFObject推荐的嵌入代码作如下修改：</p>
<p>&lt;script type=&quot;text/javascript&quot;&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var flashvars = {};     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var params = {     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; menu: &quot;false&quot;,     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scale: &quot;noScale&quot;,     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bgcolor: &quot;#FFFFFF&quot;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; };     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>window.onresize = function() {&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; document.getElementById(&quot;altContent&quot;).height = document.body.clientHeight – 160;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }       <br /></strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; swfobject.embedSWF(&quot;AlbumManager.swf&quot;, &quot;altContent&quot;, &quot;100%&quot;, <strong>document.body.clientHeight &#8211; 160</strong>, &quot;9.0.0&quot;, &quot;expressInstall.swf&quot;, flashvars, params);     <br />&#160;&#160;&#160; &lt;/script&gt;</p>
<p>也就是说使用JavaScript模拟了“100% ”。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.isdada.com/the-problam-of-swfobject-autosize.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SWF 缓存问题的解决方案（FireFox）</title>
		<link>http://www.isdada.com/the-solution-of-swf-cache-problem-firefox.html</link>
		<comments>http://www.isdada.com/the-solution-of-swf-cache-problem-firefox.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 01:45:25 +0000</pubDate>
		<dc:creator>达达</dc:creator>
				<category><![CDATA[Flash Platform]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[SWF]]></category>

		<guid isPermaLink="false">http://www.asflex.cn/?p=665</guid>
		<description><![CDATA[缓存问题有时非常烦人，通常是加个时间戳或者说是加个参数。 在FireFox下，有更好的解决方案。 打开FireFox 输入about:config 同意警告，继续 找到browser.cache.disk.enable,双击设为false; 呵呵，就是这么简单:)]]></description>
			<content:encoded><![CDATA[<p>缓存问题有时非常烦人，通常是加个时间戳或者说是加个参数。</p>
<p>在FireFox下，有更好的解决方案。</p>
<ol>
<li>打开FireFox</li>
<li>输入<strong>about:config</strong></li>
<li>同意警告，继续</li>
<li>找到<strong>browser.cache.disk.enable,双击</strong>设为false;</li>
</ol>
<p>呵呵，就是这么简单:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.isdada.com/the-solution-of-swf-cache-problem-firefox.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

