<?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>blog.alumican.net &#187; WordPress</title>
	<atom:link href="http://blog.alumican.net/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.alumican.net</link>
	<description>日々の記憶と記録とActionScript とその周辺</description>
	<lastBuildDate>Tue, 20 Jul 2010 16:21:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WP-Al-SWFObjectアップデート　v2.1</title>
		<link>http://blog.alumican.net/2009/06/30_151045</link>
		<comments>http://blog.alumican.net/2009/06/30_151045#comments</comments>
		<pubDate>Tue, 30 Jun 2009 06:10:45 +0000</pubDate>
		<dc:creator>alumican</dc:creator>
				<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.alumican.net/?p=961</guid>
		<description><![CDATA[久しぶりにWP-Al-SWFObjectをアップデートしました。
v2.0からv2.1へのマイナーアップデートになります。
最新版のダウンロードはこちらです。
変更点は以下の通りです。

wp_al_swfobject_ [...]]]></description>
			<content:encoded><![CDATA[<p>久しぶりにWP-Al-SWFObjectをアップデートしました。<br />
v2.0からv2.1へのマイナーアップデートになります。</p>
<p>最新版のダウンロードは<a href="/2009/04/19_233117#wp_al_swobject_download">こちら</a>です。<br />
変更点は以下の通りです。</p>
<ul>
<li>wp_al_swfobject_echo関数により、エントリー以外でもswfを貼り付けられるようになりました。詳しくは<a href="/2009/04/19_233117#wp_al_swobject_usage_anywhere">こちら</a>。</li>
<li>最新版のSWFObject2.2に入れ替えました。</li>
</ul>
<p>エントリー以外へのswf貼り付けについて、以前<a href="http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1126274376">Yahoo!知恵袋で間違った回答をしてしまいました</a>ので、訂正してお詫びします。</p>
<p><span style="color: #ff0000;">エントリー以外への貼り付けはWP-Al-SWFObjectが今まで対応していなかっただけで、WP-SWFObjectは対応しています（wp_swfobject_echo関数）。</span>僕が知らなかっただけでした。。。</p>
<p>質問者のarupa2008さん、WP-SWFObjectの中の人であるJim Penaloza Calixtoさん、知恵袋を見てくださった方、誤解を与えてしまってごめんなさいごめんなさい；；</p>
<p>今後はこのようなことが無いよう気をつけます OTL&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alumican.net/2009/06/30_151045/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plug-in &#8220;WP-Al-SWFObject&#8221; embeds Flash on WordPress</title>
		<link>http://blog.alumican.net/2009/05/18_005204</link>
		<comments>http://blog.alumican.net/2009/05/18_005204#comments</comments>
		<pubDate>Sun, 17 May 2009 15:52:04 +0000</pubDate>
		<dc:creator>alumican</dc:creator>
				<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.alumican.net/?p=765</guid>
		<description><![CDATA[This entry is English version of the Japanese one. I&#8217;m sorry I&#8217;m not good at English. If you find any mistakes, please let me know.
WP-Al-SWFObject
I made the plug-in to embed on the entry of WordPress easily, so it introduces it. This is powerful plug-in for embedding swf on WordPress. It is possible to specify parameters  [...]]]></description>
			<content:encoded><![CDATA[<p>This entry is English version of <a href="http://blog.alumican.net/2009/04/19_233117">the Japanese one</a>. I&#8217;m sorry I&#8217;m not good at English. If you find any mistakes, please let me know.</p>
<p><strong>WP-Al-SWFObject</strong><br />
I made the plug-in to embed on the entry of WordPress easily, so it introduces it. This is powerful plug-in for embedding swf on WordPress. It is possible to specify parameters more in detail than WP-SWFObject.</p>
<p><a href="/2009/05/18_005204#wp_al_swobject_download">Download</a><br />
<a href="/2009/05/18_005204#wp_al_swobject_usage">How to use</a><br />
<a href="/2009/05/18_005204#wp_al_swobject_usage_anywhere">・How to use (In a location other than the entry)</a><br />
<a href="/2009/05/18_005204#wp_al_swobject_control">Control panel</a><br />
<a href="/2009/05/18_005204#wp_al_swobject_example">Examples</a><br />
<a href="/2009/05/18_005204#wp_al_swobject_swfobjectversion">Version of SWFObject used</a><br />
<a href="/2009/05/18_005204#wp_al_swobject_license">License</a></p>
<p><strong id="wp_al_swobject_download">- Download</strong><br />
&gt;&gt;<a href="http://www.libspark.org/svn/wordpress/WP-Al-SWFObject/tags/v2.1/wp-al-swfobject_2.1_en.zip">Download (Enblish)</a><br />
&gt;&gt;<a href="http://www.libspark.org/svn/wordpress/WP-Al-SWFObject/tags/v2.1/wp-al-swfobject_2.1_ja.zip">Download (Japanese)</a></p>
<p><strong id="wp_al_swobject_usage">- How to use</strong></p>
<ol>
<li>The wp-al-swfobject folder is created by defrosting downloaded zip, and you up-load the folder to the wp-content/plugins directory of the server.</li>
<li>The WP-Al-SWFObject plug-in is made effective from set screen -&gt; plug-in of WordPress.</li>
<li>Describe the following codes at the position in which you want to embed swf. Please replace [ /embedSWF] with [/embedSWF].</li>
</ol>
<pre><code>[embedSWF]<span style="color: #ff0000;">swf</span>, width, height, align, version, expressInstall, flashvars, params, attributes[ /embedSWF]</code></pre>
<p><span style="color: #ff0000;">The parameter of the deficit</span> is indispensable, and other parameters is optional (It is possible to omit it).</p>
<ul>
<li><span style="color: #ff0000;">swf（indispensable） ･･･ The path to embedded swf</span></li>
<li>width（optional） ･･･ The width of swf.  If you omit it, the default value specified on a control panel is used.</li>
<li>height（optional） ･･･ The height of swf. If you omit it, the default value specified on a control panel is used.</li>
<li>align（optional） ･･･ The position of swf. You can choose from the &#8220;left&#8221;, the &#8220;right&#8221;, or the &#8220;center&#8221;.<br />
If you omit it, the value isn&#8217;t specified especially.</li>
<li>version（optional） ･･･ The version of necessary FlashPlayer. It becomes 9.0.0 when omitting it.</li>
<li>expressInstall（optional） ･･･ The path to express-install-swf. It is displayed when the player doesn&#8217;t meet the requirement. SWFObject default &#8220;expressInstall.swf&#8221; is displayed when omitting it.</li>
<li>flashvars（optional） ･･･ The flashvars a.k.a the variable that html passes swf. It is described by the format <em>{name1:&#8221;value1&#8243;, name2,&#8221;value2&#8243;}</em>.</li>
<li>params（optional） ･･･ The parameters when swf is embedded is described by flashvars and the same format.</li>
<li>attributes（optional） ･･･ The attributes on html when swf is embedded is described by flashvars and the same format.</li>
</ul>
<p><span id="more-765"></span></p>
<p><strong id="wp_al_swobject_usage_anywhere">・How to use (In a location other than the entry)</strong><br />
If you want to paste swf to the outside of the entry (For example, header and sidebar), you can call the following php function in where you want to paste swf.</p>
<pre><code>&lt;?php wp_al_swfobject_echo('[embedSWF]swf, width, height, align, version, expressInstall, flashvars, params, attributes[／embedSWF]'); ?&gt;</code></pre>
<p><strong id="wp_al_swobject_control">- Control panel</strong><br />
The default value of each parameter can be set from the plug-in Control panel.<br />
The default value is applied to all swf embedded by WP-Al-SWFObject.<br />
The priority level when the same variable is set in two or more parts becomes the following.</p>
<p>Settings in [embedSWF] tag &gt; <em>{name1:&#8221;value1&#8243;, name2:&#8221;value2&#8243;}</em> at Control panel &gt; Supplementary setting in control panel(only params can be set).</p>
<p>It is overwrited by the variable with a high priority level. Moreover, for flashvars and params and attributes, the superscription is judged individually in each variable.</p>
<p>For instance, when the following code is set from Control panel, </p>
<pre><code>aaa:"30", bbb:"50"</code></pre>
<p>flashvars (<em>aaa=&#8221;50&#8243;, bbb</em>=&#8221;30&#8243;) is passed to all embedded swf by using WP-Al-SWFObject. Under such a condition, as follows is done and swf is embedded.</p>
<pre><code>[embedSWF]hoge.swf,,,,,,{aaa:"10"}[ /embedSWF]</code></pre>
<p>In this case, because variable <em>aaa</em> is alse specified with flashvars in [embedSWF] tag, the default value is not applied to variable <em>aaa</em>. In a word, this swf will receive flashvars as <em>aaa=&#8221;10&#8243;, bbb=&#8221;50&#8243;</em>.</p>
<p><strong id="wp_al_swobject_example">- Example</strong><br />
It embeds without specifying the option (Be set it to 300 in width and 50 in height on the Control panel).</p>
<pre><code>[embedSWF]hoge.swf[ /embedSWF]</code></pre>
<p><div style="text-align: center; width:300px; height:50px; line-height:50px; background: #ffffff;"><div id="swf63366">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf63366", "300", "50", "9.0.0", "http://blog.alumican.net/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {}, {});
</script>
<br />
　</p>
<p>Next, width and height are embedded specifying it.</p>
<pre><code>[embedSWF]hoge.swf, 200, 100[ /embedSWF]</code></pre>
<p><div style="text-align: center; width:200px; height:100px; line-height:100px; background: #ffffff;"><div id="swf63367">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf63367", "200", "100", "9.0.0", "http://blog.alumican.net/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {}, {});
</script>
<br />
　</p>
<p>Next, it makes to right adjust, and flashvars is passed.</p>
<pre><code>[embedSWF]hoge.swf, 200, 100, right,,,{aaa:"10"}[ /embedSWF]</code></pre>
<p><div style="text-align: center; width:200px; height:100px; line-height:100px; margin-left: auto; background: #ffffff;"><div id="swf63368">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf63368", "200", "100", "9.0.0", "http://blog.alumican.net/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {aaa:"10"}, {}, {});
</script>
<br />
　</p>
<p>Next, the <em>id</em> and the <em>name</em> attribute of html are added.</p>
<pre><code>[embedSWF]hoge.swf, 200, 100,,,,{},{},{id:"sample", name:"sample"}[ /embedSWF]</code></pre>
<p><div style="text-align: center; width:200px; height:100px; line-height:100px; background: #ffffff;"><div id="swf63369">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf63369", "200", "100", "9.0.0", "http://blog.alumican.net/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {}, {id:"sample",name:"sample"});
</script>
<br />
　</p>
<p>Next, all parameters are specified (Flashplayer 9.0.0 or later is required. When the player version is low, <em>http://hogehoge.jp/alt.swf</em> is displayed. The variable named <em>aaa=10</em> is passed to swf. The context menu is not given. The connection between html and swf is always permitted. The id and the name attribute of html is sample).</p>
<pre><code>[embedSWF]hoge.swf, 400, 360, center, 9.0.0, http://hogehoge.jp/alt.swf, {aaa:"10"}, {menu:"false", allowScriptAccess:"always"}, {id:"sample", name:"sample"}[ /embedSWF]</code></pre>
<p><div style="text-align: center; width:200px; height:100px; line-height:100px; margin: auto; margin-right: auto; background: #ffffff;"><div id="swf633610">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf633610", "200", "100", "9.0.0", "http://hogehoge.jp/alt.swf", {aaa:"10"}, {menu:"false",allowScriptAccess:"always"}, {id:"sample",name:"sample"});
</script>
<br />
　</p>
<p><strong id="wp_al_swobject_swfobjectversion">- Version of SWFObject used</strong><br />
You can switch the version of SWFObject on COntrol panel (It is 2.1 in default).<br />
It corresponds to version from 1.5 to 2.2. But, <a href="http://code.google.com/p/swfobject/wiki/whats_new">Callback method</a> that is the new features included of 2.2, and the attributes of 1.5 cannot be specified at current version.</p>
<p><strong id="wp_al_swobject_license">- license</strong><br />
<a href="http://sourceforge.jp/projects/opensource/wiki/licenses%2FGNU_General_Public_License">GPL license</a>. Because WP-SWFObject that is origin of WP-SWFObject is GPL license. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alumican.net/2009/05/18_005204/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressにFlashを貼り付けるプラグインWP-Al-SWFObject</title>
		<link>http://blog.alumican.net/2009/04/19_233117</link>
		<comments>http://blog.alumican.net/2009/04/19_233117#comments</comments>
		<pubDate>Sun, 19 Apr 2009 14:31:17 +0000</pubDate>
		<dc:creator>alumican</dc:creator>
				<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://blog.alumican.net/?p=586</guid>
		<description><![CDATA[English is here.
WP-Al-SWFObject
WordPressのエントリにswfを簡単に貼り付けるためのプラグインを作ったので紹介します。WP-SWFObjectよりも細かくパラメータを指定できます [...]]]></description>
			<content:encoded><![CDATA[<p>English is <a href="http://blog.alumican.net/2009/05/18_005204">here</a>.</p>
<p><strong>WP-Al-SWFObject</strong><br />
WordPressのエントリにswfを簡単に貼り付けるためのプラグインを作ったので紹介します。WP-SWFObjectよりも細かくパラメータを指定できます。</p>
<p><a href="/2009/04/19_233117#wp_al_swobject_download">ダウンロード</a><br />
<a href="/2009/04/19_233117#wp_al_swobject_usage">使い方</a><br />
<a href="/2009/04/19_233117#wp_al_swobject_usage_anywhere">使い方（エントリー以外の場所に貼り付ける）</a><br />
<a href="/2009/04/19_233117#wp_al_swobject_control">管理画面</a><br />
<a href="/2009/04/19_233117#wp_al_swobject_example">使用例</a><br />
<a href="/2009/04/19_233117#wp_al_swobject_swfobjectversion">使用するSWFObjectのバージョン</a><br />
<a href="/2009/04/19_233117#wp_al_swobject_license">ライセンス</a></p>
<p><strong id="wp_al_swobject_download">・ダウンロード</strong><br />
&gt;&gt;<a href="http://www.libspark.org/svn/wordpress/WP-Al-SWFObject/tags/v2.1/wp-al-swfobject_2.1_en.zip">Download （英語版）</a><br />
&gt;&gt;<a href="http://www.libspark.org/svn/wordpress/WP-Al-SWFObject/tags/v2.1/wp-al-swfobject_2.1_ja.zip">Download （日本語版）</a></p>
<p><strong id="wp_al_swobject_usage">・使い方</strong></p>
<ol>
<li>ダウンロードしたzipを解凍するとwp-al-swfobjectフォルダができるので、フォルダごとサーバのwp-content/pluginsディレクトリにアップロードします。</li>
<li>WordPressの設定画面-&gt;プラグインから、WP-Al-SWFObjectプラグインを有効化します。</li>
<li>エントリー内のswfを貼り付けたい位置に以下のコードを記述します。[／embedSWF]は[/embedSWF]に置き換えてください。</li>
</ol>
<pre><code>[embedSWF]<span style="color: #ff0000;">swf</span>, width, height, align, version, expressInstall, flashvars, params, attributes[／embedSWF]</code></pre>
<p>赤字のパラメータは必須、黒字のパラメータはオプション(省略可能)です。</p>
<ul>
<li><span style="color: #ff0000;">swf（必須） ･･･ 貼り付けるswfへのパスを記述します。</span></li>
<li>width（省略可） ･･･ swfの幅を指定します。省略するとプラグインの設定ページで指定したデフォルト値が用いられます。</li>
<li>height（省略可） ･･･ swfの高さを指定します。省略するとプラグインの設定ページで指定したデフォルト値が用いられます。</li>
<li>align（省略可） ･･･ swfを貼り付ける際の位置を指定します。左寄せ、右寄せ、中央寄せに対してそれぞれleft、right、centerで指定します。省略すると特に指定されません。</li>
<li>version（省略可） ･･･ 必要なFlashPlayerのバージョンを記述します。省略すると9.0.0となります。</li>
<li>expressInstall（省略可） ･･･ プレイヤーが要件を満たさない場合に表示するswfへのパスを記述します。省略するとSWFObjectデフォルトのexpressInstall.swfを表示します。</li>
<li>flashvars（省略可） ･･･ HTMLからflashに渡す変数（flashvars）を、{変数名1:&#8221;値1&#8243;, 変数名2:&#8221;値2&#8243;}という形式で記述します。</li>
<li>params（省略可） ･･･ swfを貼り付ける際のパラメータを、flashvarsと同形式で記述します。</li>
<li>attributes（省略可） ･･･ swfを貼り付ける際のhtml属性を、flashvarsと同形式で記述します。</li>
</ul>
<p><span id="more-586"></span></p>
<p><strong id="wp_al_swobject_usage_anywhere">・使い方（エントリー以外の場所に貼り付ける）</strong><br />
ヘッダーやサイドバーなど、エントリ以外の場所に貼り付ける場合は、貼り付けたい場所で以下のphp関数を呼び出します。引数として、エントリー内に貼り付ける場合のタグと同様のものをまるごと文字列で渡します。</p>
<pre><code>&lt;?php wp_al_swfobject_echo('[embedSWF]swf, width, height, align, version, expressInstall, flashvars, params, attributes[／embedSWF]'); ?&gt;</code></pre>
<p><strong id="wp_al_swobject_control">・管理画面</strong><br />
WP-Al-SWFObjectは管理画面から各パラメータのデフォルト値を設定できます。<br />
デフォルト値はWP-Al-SWFObjectによって貼られる全てのswfに適用されます。<br />
同じ変数を複数の箇所で設定した場合の優先順位は<br />
[embedSWF]タグ内 &gt; 設定画面の{変数名1:&#8221;値1&#8243;, 変数名2:&#8221;値2&#8243;} &gt; 設定画面の補助設定（paramsのみ設定可）<br />
となっており、優先順位の高い変数に上書きされます。また、flashvars、params、attributesに関しては各変数ごとに上書き判定がなされます。</p>
<p>例えば、管理画面からflashvarsの項目に</p>
<pre><code>aaa:"30", bbb:"50"</code></pre>
<p>を設定すると、WP-Al-SWFObjectを使って貼る全てのswfに aaa=&#8221;30&#8243;, bbb=&#8221;50&#8243; としてflashvarsが渡されます。この状態で、以下のようにしてswfを貼り付けます。</p>
<pre><code>[embedSWF]hoge.swf,,,,,,{aaa:"10"}[／embedSWF]</code></pre>
<p>この場合、タグ内でデフォルト値と同名の変数名aaaでflashvarsを指定しているため、デフォルト値は変数aaaに対して適用されません。つまり、このswfは aaa=&#8221;10&#8243;, bbb=&#8221;50&#8243; としてflashvarsを受け取ることになります。</p>
<p><strong id="wp_al_swobject_example">・使用例</strong><br />
オプションを指定せずに貼り付ける（管理画面で幅300、高さ50に設定してあります）</p>
<pre><code>[embedSWF]hoge.swf[／embedSWF]</code></pre>
<p><div style="text-align: center; width:300px; height:50px; line-height:50px; background: #ffffff;"><div id="swf633616">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf633616", "300", "50", "9.0.0", "http://blog.alumican.net/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {}, {});
</script>
</p>
<p>幅と高さを指定して貼り付ける</p>
<pre><code>[embedSWF]hoge.swf, 200, 100[／embedSWF]</code></pre>
<p><div style="text-align: center; width:200px; height:100px; line-height:100px; background: #ffffff;"><div id="swf633617">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf633617", "200", "100", "9.0.0", "http://blog.alumican.net/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {}, {});
</script>
</p>
<p>右寄せにしてflashvarsを渡す</p>
<pre><code>[embedSWF]hoge.swf, 200, 100, right,,,{aaa:"10"}[／embedSWF]</code></pre>
<p><div style="text-align: center; width:200px; height:100px; line-height:100px; margin-left: auto; background: #ffffff;"><div id="swf633618">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf633618", "200", "100", "9.0.0", "http://blog.alumican.net/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {aaa:"10"}, {}, {});
</script>
</p>
<p>htmlのidとname属性を付加する</p>
<pre><code>[embedSWF]hoge.swf, 200, 100,,,,{},{},{id:"sample", name:"sample"}[／embedSWF]</code></pre>
<p><div style="text-align: center; width:200px; height:100px; line-height:100px; background: #ffffff;"><div id="swf633619">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf633619", "200", "100", "9.0.0", "http://blog.alumican.net/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {}, {id:"sample",name:"sample"});
</script>
</p>
<p>全パラメータを指定する（プレイヤーは9.0.0以上、プレイヤーバージョンが低い場合はhttp://hogehoge.jp/alt.swfを表示、aaa=10という変数をswfに渡す、右クリックメニューを出さない、htmlとswfの通信を常に許可する、htmlのidとname属性をsampleとする）</p>
<pre><code>[embedSWF]hoge.swf, 400, 360, center, 9.0.0, http://hogehoge.jp/alt.swf, {aaa:"10"}, {menu:"false", allowScriptAccess:"always"}, {id:"sample", name:"sample"}[／embedSWF]</code></pre>
<p><div style="text-align: center; width:200px; height:100px; line-height:100px; margin: auto; margin-right: auto; background: #ffffff;"><div id="swf633620">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://lab.alumican.net/wp-al-swfobject/sample.swf", "swf633620", "200", "100", "9.0.0", "http://hogehoge.jp/alt.swf", {aaa:"10"}, {menu:"false",allowScriptAccess:"always"}, {id:"sample",name:"sample"});
</script>
</p>
<p><strong id="wp_al_swobject_swfobjectversion">・使用するSWFObjectのバージョン</strong><br />
管理画面から切り替えられます（デフォルトでは2.1）。<br />
バージョン1.5～2.2まで対応していますが、現在のところ1.5のattributesと2.2の新機能である<a href="http://code.google.com/p/swfobject/wiki/whats_new">Callback method</a>は指定できません。</p>
<p><strong id="wp_al_swobject_license">・ライセンス</strong><br />
元にしたWP-SWFObjectが<a href="http://sourceforge.jp/projects/opensource/wiki/licenses%2FGNU_General_Public_License">GPLライセンス</a>なのでGPLでお願いします。</p>
<p><strong>追記 09.04.24</strong><br />
使用方法が2エントリに分割されていたので、1つにまとめました。<br />
swfの幅と高さが省略可能となりましたので、それに伴いエントリ内容を修正しました。<br />
プラグインの紹介に特化するため、前段部分の文章（下記のもの）を削除しました。</p>
<blockquote><p><a href="http://blog.alumican.net/2009/04/17_134737">前回のエントリ</a>にも書いたのですが、WordPressにswfを貼り付けるには<a href="http://wordpress.org/extend/plugins/wp-swfobject/">WP-SWFObjectプラグイン</a>が便利です。が、どうにもparamsとattributeを指定できないようなので、プラグインを自作しました。（WP-SWFObjectでのflashvarsの渡し方は<a href="http://blog.alumican.net/2009/04/17_134737#comments">コメント欄で</a>まつもとさんに教えていただきました、ありがとうございます！）</p></blockquote>
<p><strong>追記 09.05.11</strong><br />
<a href="http://www.libspark.org/wiki/alumican/WP-Al-SWFObject">SparkProjectにコミット</a>しました。</p>
<p><strong>追記 09.05.18</strong><br />
<a href="http://blog.alumican.net/2009/05/18_005204">英語版エントリ</a>を書きました。</p>
<p><strong>追記 09.06.30</strong><br />
<a href="/2009/06/30_151045">v2.1にバージョンアップしました</a>。wp_al_swfobject_echo関数により、エントリー以外の場所でもswfの貼り付けが可能となりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alumican.net/2009/04/19_233117/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>WP-SWFObjectでwmodeを変更できない問題の解決法</title>
		<link>http://blog.alumican.net/2009/04/17_134737</link>
		<comments>http://blog.alumican.net/2009/04/17_134737#comments</comments>
		<pubDate>Fri, 17 Apr 2009 04:47:37 +0000</pubDate>
		<dc:creator>alumican</dc:creator>
				<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.alumican.net/?p=519</guid>
		<description><![CDATA[WordPressでSWFObjectを使ったswfファイルの貼り付けをサポートしてくれるWP-SWFObjectプラグインを導入してみました。バージョンは2.1です。
例えば幅400px、高さ300pxのhoge.sw [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressでSWFObjectを使ったswfファイルの貼り付けをサポートしてくれる<a href="http://wordpress.org/extend/plugins/wp-swfobject/">WP-SWFObjectプラグイン</a>を導入してみました。バージョンは2.1です。</p>
<p>例えば幅400px、高さ300pxのhoge.swfを埋め込みたい場所で</p>
<pre><code>[SWF]hoge.swf, 400, 300[／SWF]</code></pre>
<p>と記述すればSWFObjectタグを挿入してくれるので大変便利です。[／SWF]の部分は[/SWF]に置き換えてください。</p>
<p>オプション画面では、書き出し時のパラメータを調整できて結構融通がきくのですが、wmodeだけはopaqueやtransparentに設定しても、すぐにデフォルトのwindowにもどってしまいます。</p>
<p>何でだろうと思ってwp-swfobjectフォルダのwp-swfobject.phpをみてみると、197行目あたりにタイポを見つけました。</p>
<pre><code>&lt;select name="<span style="color: #ff0000;">swf_mode</span>" id="<span style="color: #ff0000;">swf_mode</span>"&gt;&lt;/select&gt;</code></pre>
<p>swf_wmodeとするはずがswf_modeに。。。どうやらこいつが原因のようです。そこで、この行を以下のように変更します。</p>
<pre><code>&lt;select name="<span style="color: #ff0000;">swf_wmode</span>" id="<span style="color: #ff0000;">swf_wmode</span>"&gt;&lt;/select&gt;</code></pre>
<p>アップしなおすと上手く動きました。ﾊﾟﾁﾊﾟﾁﾊﾟﾁ</p>
<p>あとは、SWFObjectで言うところのflashvars、params、attributesをWP-SWFObjectから上手く渡せれば完璧なのですが、やり方がよく分かりません。どなたか知っている方がおられましたら教えてください↓</p>
<pre><code>swfobject.embedSWF("hoge.swf", "content_id", "400", "300", "9.0.0", "expressInstall.swf", <span style="color: #ff0000;">flashvars</span>, <span style="color: #ff0000;">params</span>, <span style="color: #ff0000;">attributes</span>);</code></pre>
<p><strong>追記 09.05.03</strong><br />
自ら解決すべく、プラグイン『<a href="http://blog.alumican.net/2009/04/19_233117">WP-Al-SWFObject</a>』を自作しました。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alumican.net/2009/04/17_134737/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>コメントがある記事のコメント欄へリンクできていなかった</title>
		<link>http://blog.alumican.net/2009/02/05_185205</link>
		<comments>http://blog.alumican.net/2009/02/05_185205#comments</comments>
		<pubDate>Thu, 05 Feb 2009 09:52:05 +0000</pubDate>
		<dc:creator>alumican</dc:creator>
				<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.alumican.net/?p=202</guid>
		<description><![CDATA[WordPressの初期設定では、コメントが無い記事のコメント欄へのリンクが URL#respond であるのに対し、コメントが1件以上の記事のコメント欄へのリンクがURL#comments となっている。
一方、htm [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressの初期設定では、コメントが無い記事のコメント欄へのリンクが URL#respond であるのに対し、コメントが1件以上の記事のコメント欄へのリンクがURL#comments となっている。</p>
<p>一方、html ではどのタグのid属性も comment や respond が設定されていない。</p>
<p>そこで、html 側のコメント欄の id 属性を respond として、さらに wp-includes/comment-template.php 内の get_comments_link 関数を以下のように修正した。</p>
<pre><code>function get_comments_link() {
    /* 修正前 return get_permalink() . '#comments'; */
    return get_permalink() . '#respond';
}</code></pre>
<p>（追記）<br />
respondが名詞のresponsesではなく動詞の「レスする」であることを考えると、コメント一欄とコメントフォームへのリンクを分けるために #comments と #respond が存在しているような気がしてきた。</p>
<p>そこで html 側でコメント一欄の id 属性を comments 、コメントフォームのid属性を respond とそれぞれ設定して、コメントが存在する記事のコメントリンクは #commentsへ、コメントが存在しない記事のコメントリンクは #respond へ飛ばすようにしてみた。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alumican.net/2009/02/05_185205/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
