<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.jp/~d/styles/rss2japanesefull.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.jp/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>unbland.org blog</title>
	
	<link>http://unbland.org/blog</link>
	<description>発見の日々の備忘録。主に Web にまつまる技術ネタ。</description>
	<pubDate>Thu, 18 Dec 2008 14:21:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.jp/unbland" type="application/rss+xml" /><item>
		<title>Wonderfl が面白い</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/5212863/212.html</link>
		<comments>http://unbland.org/blog/2008/12/18/212.html#comments</comments>
		<pubDate>Thu, 18 Dec 2008 03:10:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash (ActionScript)]]></category>

		<guid isPermaLink="false">http://unbland.org/blog/?p=212</guid>
		<description><![CDATA[kayac さんが Wonderfl というサービスをリリースしていたのですが、これがかなり面白い。サーバー上で書いた ActionScript がそのままリアルタイムでコンパイルされて表示されるので、かなりのお手軽さ。 [...]]]></description>
			<content:encoded><![CDATA[<p>kayac さんが <a href="http://wonderfl.kayac.com/" target="_blank">Wonderfl</a> というサービスをリリースしていたのですが、これがかなり面白い。サーバー上で書いた ActionScript がそのままリアルタイムでコンパイルされて表示されるので、かなりのお手軽さ。試しに自分も前に作った 3D ドーナッツを投稿してみました。<a href="http://wonderfl.kayac.com/code/0577ea47893fb6343f8eea1817cc2c1813ec2fc9" target="_blank">ここから</a>。ブログパーツにまで出来ちゃうから、ちょっと試してみたい時にも気軽に使えますね。ただ、環境によって BitmapData のエラーが出るのは FlashPlayer の所為？</p>
<p><del datetime="2008-12-18T14:20:54+00:00">ちなみにブログパーツ↓</del></p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=GSrRXBEO"><img src="http://feeds.feedburner.jp/~f/unbland?i=GSrRXBEO" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=vcFqAr5O"><img src="http://feeds.feedburner.jp/~f/unbland?i=vcFqAr5O" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/5212863"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/12/18/212.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/12/18/212.html</feedburner:origLink></item>
		<item>
		<title>Flash で正常にパブリッシュできない</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988986/190.html</link>
		<comments>http://unbland.org/blog/2008/11/20/190.html#comments</comments>
		<pubDate>Thu, 20 Nov 2008 10:32:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=190</guid>
		<description><![CDATA[graffiti-blog さんと全く同じFlashの書き出せないバグに遭遇中。ASO ファイルを削除したりしても駄目。意味分からない。だれか解決法知りませんか？
※ 08.11.21 追記：
ActionScript  [...]]]></description>
			<content:encoded><![CDATA[<p>graffiti-blog さんと全く同じ<a href="http://blog.graffiti-web.org/archives/2008/01/flash_1.html" target="_blank">Flashの書き出せないバグ</a>に遭遇中。ASO ファイルを削除したりしても駄目。意味分からない。だれか解決法知りませんか？</p>
<p>※ 08.11.21 追記：<br />
ActionScript 設定の Warning モードのチェックを外す事でエラーが表示されるようになり、正常に書き出せました。ただ、なぜ正常に書き出せなかったかは不明。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=ND6YouRN"><img src="http://feeds.feedburner.jp/~f/unbland?i=ND6YouRN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=u15zvrkN"><img src="http://feeds.feedburner.jp/~f/unbland?i=u15zvrkN" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988986"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/11/20/190.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/11/20/190.html</feedburner:origLink></item>
		<item>
		<title>とても良い話し</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988987/188.html</link>
		<comments>http://unbland.org/blog/2008/11/07/188.html#comments</comments>
		<pubDate>Fri, 07 Nov 2008 01:31:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=188</guid>
		<description><![CDATA[とても良い話しが ALT FACEs に。バスキュール x AKQA のネットミーティングの記録。
]]></description>
			<content:encoded><![CDATA[<p>とても良い話しが ALT FACEs に。<a href="http://alt.faces.jp/2008/11/akqa.html" target="_blank">バスキュール x AKQA のネットミーティングの記録</a>。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=eBFJnUtN"><img src="http://feeds.feedburner.jp/~f/unbland?i=eBFJnUtN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=Uld2piHN"><img src="http://feeds.feedburner.jp/~f/unbland?i=Uld2piHN" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988987"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/11/07/188.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/11/07/188.html</feedburner:origLink></item>
		<item>
		<title>以前作成した JavaScript の透明フロートレイヤー</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988988/186.html</link>
		<comments>http://unbland.org/blog/2008/10/30/186.html#comments</comments>
		<pubDate>Thu, 30 Oct 2008 09:06:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=186</guid>
		<description><![CDATA[前に MT アップデートした時に一式データが消えてしまったけど、101LAB さんに保管されてた、感謝。忘れないうちに貼付けておきます。
]]></description>
			<content:encoded><![CDATA[<p>前に MT アップデートした時に一式データが消えてしまったけど、<a href="http://101lab.net/javascript/2007/07/post-5.html" target="_blank">101LAB さん</a>に保管されてた、感謝。忘れないうちに貼付けておきます。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>JavaScript</strong></small>
</div>
<pre name="code" class="jscript" style="margin:18px 0;">
function FloatLayer() {
    this.initialize.apply(this, arguments);
};

FloatLayer.prototype = {

    initialize:function () {},

    add:function () {
        var container = document.createElement(&quot;div&quot;);
        $(container).attr(&quot;id&quot;, &quot;floatLayer&quot;);
        $(container).css({margin:0, padding:0, background:&quot;none&quot;});
        $(document.body).append(container);
        var input = document.createElement(&quot;input&quot;);
        $(input).attr(&quot;type&quot;, &quot;button&quot;);
        $(input).attr(&quot;value&quot;, &quot;クリックで閉じる&quot;);
        $(container).append(input);
        $(input).click(function () {
            $(&quot;#floatLayer&quot;).remove();
        });

        if($.browser.msie) {
            if(!window.XMLHttpRequest || !document.compatMode.match(/CSS/i)) {
                $(container).css({position:&quot;absolute&quot;, background:&quot;#000000&quot;, filter: &quot;alpha(opacity=50)&quot;});
                this.optimizeScroll();
                $(window).scroll(this.optimizeScroll);
                this.optimizeSize();
                $(window).resize(this.optimizeSize);
            }
        } else {
            $(container).css({width:&quot;100%&quot;, height:&quot;100%&quot;, position:&quot;fixed&quot;, left:0, top:0,
                background:&quot;#000000&quot;, opacity: 0.5
            });
        }
    },

    optimizeScroll:function () {
        var scrollLeft = (document.compatMode.match(/CSS/i)) ?
                document.documentElement.scrollLeft : document.body.scrollLeft;
        var scrollTop  = (document.compatMode.match(/CSS/i)) ?
                document.documentElement.scrollTop : document.body.scrollTop;
        $(&quot;#floatLayer&quot;).css({
            left:scrollLeft,
            top:scrollTop
        });
    },

    optimizeSize:function () {
        var windowWidth = (document.compatMode.match(/CSS/i)) ?
            document.documentElement.clientWidth : document.body.clientWidth;
        var windowHeight = (document.compatMode.match(/CSS/i)) ?
            document.documentElement.clientHeight : document.body.clientHeight;
        $(&quot;#floatLayer&quot;).width(windowWidth);
        $(&quot;#floatLayer&quot;).height(windowHeight);
    }
};

var floatLayer = new FloatLayer();
floatLayer.add();
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=fbeRMFjN"><img src="http://feeds.feedburner.jp/~f/unbland?i=fbeRMFjN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=ExqFCppN"><img src="http://feeds.feedburner.jp/~f/unbland?i=ExqFCppN" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988988"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/30/186.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/10/30/186.html</feedburner:origLink></item>
		<item>
		<title>ActionScript 3 で抽象クラス</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988989/182.html</link>
		<comments>http://unbland.org/blog/2008/10/30/182.html#comments</comments>
		<pubDate>Thu, 30 Oct 2008 06:45:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash (ActionScript)]]></category>

		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=182</guid>
		<description><![CDATA[Java でいう abstract 修飾子がないので疑似実装するしかないですが、今までは getQualifiedClassName() 使ってクラス名を取得後、文字列で判別してました。でも前回のエントリーで const [...]]]></description>
			<content:encoded><![CDATA[<p>Java でいう abstract 修飾子がないので疑似実装するしかないですが、今までは getQualifiedClassName() 使ってクラス名を取得後、文字列で判別してました。でも前回のエントリーで constructor プロパティの有用性を知ったので、こちらを使っての実装法を考えてみました。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>ActionScript</strong></small>
</div>
<pre name="code" class="actionscript" style="margin:18px 0;">
// AbstractClass
package
{
    public class AbstractClass
    {
        public function AbstractClass():void
        {
            if (Object(this).constructor == AbstractClass)
            {
                throw new Error(&quot;このクラスは抽象クラスなので直接インスタンス化できません.&quot;);
            }
        }
    }
}

// SubClass
package
{
    public class SubClass extends AbstractClass
    {
        public function SubClass():void
        {

        }
    }
}
</pre>
<p>こんな感じにしておけば、new AbstractClass() だとエラーになりますが、new SubClass() だとインスタンス化できます。className プロパティとかを実装したいのであれば、やっぱり getQualifiedClassName() を使わないといけませんが、そうでなければこの方法で十分な気がします。</p>
<p>この方法を考えてる時に constructor プロパティの取得法がいまいち分からなかったんですが、<a href="http://twitter.com/seyself/status/981785730" target="_blank">seyself さんから教えて</a>いただきました。ありがとうございます。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=ps0V7GeN"><img src="http://feeds.feedburner.jp/~f/unbland?i=ps0V7GeN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=Ep9Z9NlN"><img src="http://feeds.feedburner.jp/~f/unbland?i=Ep9Z9NlN" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988989"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/30/182.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/10/30/182.html</feedburner:origLink></item>
		<item>
		<title>JavaScript で型判別</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988990/173.html</link>
		<comments>http://unbland.org/blog/2008/10/30/173.html#comments</comments>
		<pubDate>Wed, 29 Oct 2008 16:52:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=173</guid>
		<description><![CDATA[ActionScript 3 なら is 演算子で一発な型判別。JavaScript では is 演算子が使えないのでそうもいかず、typeof だと null が object として扱われる（Array とか自作クラ [...]]]></description>
			<content:encoded><![CDATA[<p>ActionScript 3 なら is 演算子で一発な型判別。JavaScript では is 演算子が使えないのでそうもいかず、typeof だと null が object として扱われる（Array とか自作クラスも同じ）し、instanceof ではすべてのクラスが Object のインスタンスとして判別されるため、この二つは役不足。なにか方法がないかと模索してみた結果、constructor プロパティで判別するのが良さそうです。</p>
<p>以下、テストコード。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>JavaScript</strong></small>
</div>
<pre name="code" class="jscript" style="margin:18px 0;">
function Test() {};
var test = new Test();

alert(test.constructor == Object); // false
alert(test.constructor == Test); // true
alert(null.constructor); // TypeError: null has no properties
alert(undefined.constructor); // TypeError: undefined has no properties
</pre>
<p>InternetExplorer, Firefox, Safari などのブラウザですべて同じ動作なので、これが試した限りでは一番確実っぽいです。他に良い方法があればコメント欄で教えてください。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=GeqTIYTN"><img src="http://feeds.feedburner.jp/~f/unbland?i=GeqTIYTN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=awJZN9dN"><img src="http://feeds.feedburner.jp/~f/unbland?i=awJZN9dN" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988990"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/30/173.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/10/30/173.html</feedburner:origLink></item>
		<item>
		<title>ActionScript 3 での色々な文字列の扱い方</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988991/167.html</link>
		<comments>http://unbland.org/blog/2008/10/28/167.html#comments</comments>
		<pubDate>Tue, 28 Oct 2008 14:35:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash (ActionScript)]]></category>

		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=167</guid>
		<description><![CDATA[ActionScript 内で JavaScript を操作する時には ExternalInterface を使いますが、複雑なことをする時にはどうしても以下のような感じになります。
これだと文字列の連結が多すぎで分かり [...]]]></description>
			<content:encoded><![CDATA[<p>ActionScript 内で JavaScript を操作する時には ExternalInterface を使いますが、複雑なことをする時にはどうしても以下のような感じになります。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>ActionScript</strong></small>
</div>
<pre name="code" class="actionscript" style="margin:18px 0;">
ExternalInterface.call(
    &quot;function ()&quot; +
    &quot;{&quot; +
        &quot;var temp = &#039;test&#039;;&quot; +
        &quot;temp += &#039;string&#039;;&quot; +
        &quot;alert(temp);&quot; +
    &quot;}&quot;
);
</pre>
<p>これだと文字列の連結が多すぎで分かりにくくなってしまうんですが、ActionScript は CDATA セクションを文字列として扱うためこんなやり方もあります。</p>
<p><code></p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>ActionScript</strong></small>
</div>
<pre name="code" class="actionscript" style="margin:18px 0;">
ExternalInterface.call(&lt;![CDATA[
    function ()
    {
        var temp = &quot;test&quot;;
        temp += &quot;string&quot;;
        alert(temp);
    }
]]&gt;);
</pre>
<p></code></p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=5lA2TMvN"><img src="http://feeds.feedburner.jp/~f/unbland?i=5lA2TMvN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=gejPDpvN"><img src="http://feeds.feedburner.jp/~f/unbland?i=gejPDpvN" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988991"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/28/167.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/10/28/167.html</feedburner:origLink></item>
		<item>
		<title>AS3 での Singleton パターン実装</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988992/160.html</link>
		<comments>http://unbland.org/blog/2008/10/23/160.html#comments</comments>
		<pubDate>Thu, 23 Oct 2008 03:37:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash (ActionScript)]]></category>

		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[新規タグの追加]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=160</guid>
		<description><![CDATA[AS3 での Singleton パターン実装はなかなか面倒くさいやり方が多いですが、ちょっとシンプルな実装法を思いついたので紹介します。
※ 08.10.23 追記：
コンストラクタ内部で _instance = th [...]]]></description>
			<content:encoded><![CDATA[<p>AS3 での Singleton パターン実装はなかなか面倒くさいやり方が多いですが、ちょっとシンプルな実装法を思いついたので紹介します。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>ActionScript</strong></small>
</div>
<pre name="code" class="actionscript" style="margin:18px 0;">
package
{
    public class Singleton
    {
        private static var _instance:Singleton = new Singleton();

        public function Singleton():void
        {
            if (_instance)
            {
                throw new ArgumentError(&quot;Singleton クラスは外部からインスタンス化できません.&quot;);
            }
        }

        public static function get instance():Singleton
        {
            return _instance;
        }
    }
}
</pre>
<p>※ 08.10.23 追記：<br />
コンストラクタ内部で _instance = this をしていましたが、コメントを受けて修正しました。</p>
<p>内部で最初に new してしまっておくだけなんですが、今まで思いつきませんでした。問題になりそうな点があったらコメントお願いします。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=jvazzoKN"><img src="http://feeds.feedburner.jp/~f/unbland?i=jvazzoKN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=UrHNhLAN"><img src="http://feeds.feedburner.jp/~f/unbland?i=UrHNhLAN" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988992"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/23/160.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/10/23/160.html</feedburner:origLink></item>
		<item>
		<title>FlashDevelop on Mac (Linux) の可能性が出てきた？</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988993/153.html</link>
		<comments>http://unbland.org/blog/2008/10/09/153.html#comments</comments>
		<pubDate>Wed, 08 Oct 2008 18:07:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash (ActionScript)]]></category>

		<category><![CDATA[FlashDevelop]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=153</guid>
		<description><![CDATA[ネットサーフィン（って最近聞かないですね）してたら気になる情報が。
Mono 2.0 がリリースされたことにより FlashDevelop on Mac (Linux) の可能性が出てきたっぽいです。要は FlashDe [...]]]></description>
			<content:encoded><![CDATA[<p>ネットサーフィン（って最近聞かないですね）してたら<a href="http://www.flashdevelop.org/community/viewtopic.php?f=9&amp;t=3750&amp;p=17277&amp;hilit=Mono#p17277" target="_blank">気になる情報</a>が。</p>
<p><a href="http://www.mono-project.com/Main_Page" target="_blank">Mono 2.0</a> がリリースされたことにより FlashDevelop on Mac (Linux) の可能性が出てきたっぽいです。要は FlashDevelop は .NET で作られてるので、Mac 上で .NET が動かせる Mono により移植出来るようになったと。<a href="http://luiscubal.googlepages.com/CapturaEcra.png" rel="shadowbox[post-153];player=img;" target="_blank">実際に Linux 上で動いている FlashDevelop の画像</a>もあるので期待出来そうですね。</p>
<p>ただ、最初のリンク内で FlashDevelop 開発者の Mika さんがコメントされているように、肝心な構文解析やエディタ部分のエンジンが .NET ではないため、そこの移植はセカンドチーム（募集中？）次第みたいです。</p>
<p>エディタの善し悪しで作業効率が全然違うので、FlashDevelop on Mac が出来たら FlashDevelop on VMWare Fusion なんかとっととサヨナラするぐらい個人的にはテンション上がります。最後に、りちゃさん<a href="http://twitter.com/rch850/statuses/951579420" target="_blank">情報</a>ありがとうございました！</p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=1UajOLPN"><img src="http://feeds.feedburner.jp/~f/unbland?i=1UajOLPN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=E7og9bBN"><img src="http://feeds.feedburner.jp/~f/unbland?i=E7og9bBN" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988993"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/09/153.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/10/09/153.html</feedburner:origLink></item>
		<item>
		<title>Pixel Bender で放射状ブラー（ズーム＆回転）</title>
		<link>http://feeds.feedburner.jp/~r/unbland/~3/4988994/147.html</link>
		<comments>http://unbland.org/blog/2008/10/08/147.html#comments</comments>
		<pubDate>Wed, 08 Oct 2008 02:21:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash (ActionScript)]]></category>

		<guid isPermaLink="false">http://unbland.net/blog/?p=147</guid>
		<description><![CDATA[困った beinteractive さんの発言を受けて Pixel Bender で放射状ブラーを作ってみました。パラメータいじれるようにと思って Flex Builder に初挑戦してみたんですが、これのせいで余計に時 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/beinteractive/statuses/948148287" target="_blank">困った beinteractive さん</a>の発言を受けて Pixel Bender で放射状ブラーを作ってみました。パラメータいじれるようにと思って Flex Builder に初挑戦してみたんですが、これのせいで余計に時間が掛かってしまった・・・。</p>
<p><a rel="shadowbox[Mixed];width=340;height=400" href="http://unbland.net/blog/wp-content/uploads/2008/10/radialblur.swf"><img src="http://unbland.net/blog/wp-content/uploads/2008/10/radialblur.jpg" alt="放射状ブラーのデモ" width="340" height="400" /><br />
放射状ブラーのデモ（※ 要 Flash Player 10）</a></p>
<p>関連ファイルは<a href="http://www.libspark.org/browser/as3/Astro/RadialBlur" target="_blank">スパークプロジェクトの RadialBlur</a> に一式上げてます。簡単に説明をすると、対象のピクセル間近 9 つのポイントをサンプリング＆<a href="http://ja.wikipedia.org/wiki/%E7%A7%BB%E5%8B%95%E5%B9%B3%E5%9D%87" target="_blank">加重移動平均法</a>を使って平滑化し、ピクセル色として適用しています。Pixel Bender はループ処理とか関数が使えない（Flash Player 向けの場合）ので、同じような文章が並んでかなり不格好ですが・・・。Pixel Bender の更なるバージョンアップに期待。</p>
<p>あと、Saqoosha さんも<a href="http://saqoosha.net/2008/10/08/1581/" target="_blank">同じ事に挑戦</a>されてました。違うアプローチで面白い。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.jp/~f/unbland?a=BPX3wnNN"><img src="http://feeds.feedburner.jp/~f/unbland?i=BPX3wnNN" border="0"></img></a> <a href="http://feeds.feedburner.jp/~f/unbland?a=s9zZpd8N"><img src="http://feeds.feedburner.jp/~f/unbland?i=s9zZpd8N" border="0"></img></a>
</div><img src="http://feeds.feedburner.jp/~r/unbland/~4/4988994"/>]]></content:encoded>
			<wfw:commentRss>http://unbland.org/blog/2008/10/08/147.html/feed</wfw:commentRss>
		<feedburner:origLink>http://unbland.org/blog/2008/10/08/147.html</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 0.452 seconds -->
