<?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; English</title>
	<atom:link href="http://blog.alumican.net/tag/english/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>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="swf15766">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", "swf15766", "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="swf15767">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", "swf15767", "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="swf15768">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", "swf15768", "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="swf15769">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", "swf15769", "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="swf157610">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", "swf157610", "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>
	</channel>
</rss>
