<?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>QuicSRAM / ktu.jp</title>
	<atom:link href="http://www.ktu.jp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ktu.jp</link>
	<description>ktu.jp</description>
	<lastBuildDate>Wed, 12 May 2010 12:28:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>あるかないか判断して削除</title>
		<link>http://www.ktu.jp/2010/05/removechild/</link>
		<comments>http://www.ktu.jp/2010/05/removechild/#comments</comments>
		<pubDate>Wed, 12 May 2010 12:28:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[as3]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=233</guid>
		<description><![CDATA[なんかよく忘れるんだよね。

if (contains(mc)) removeChild(mc);

]]></description>
			<content:encoded><![CDATA[<p>なんかよく忘れるんだよね。</p>
<pre class="brush: as3;">
if (contains(mc)) removeChild(mc);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2010/05/removechild/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[as3] 重複する配列を削除する</title>
		<link>http://www.ktu.jp/2010/03/as3-array/</link>
		<comments>http://www.ktu.jp/2010/03/as3-array/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 07:12:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[as3]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=227</guid>
		<description><![CDATA[
private function xGetUniqueArray(_array:Array):Array {
	var result_array:Array = new Array();
	var oValues:Ob [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: as3;">
private function xGetUniqueArray(_array:Array):Array {
	var result_array:Array = new Array();
	var oValues:Object = new Object();
	var nLength:Number = _array.length;
	for (var i:Number = 0; i&lt;nLength; ++i) {
		var myValue:Object = _array[i];
		if (!oValues[myValue]) {
			oValues[myValue] = true;
			result_array.push(myValue);
		}
	}
	return result_array;
}
</pre>
<p>どこから探してきたんだっけな。。<br />
<a href="http://www.flash-jp.com/modules/newbb/viewtopic.php?topic_id=4242&#038;forum=6&#038;post_id=22405">Flash-jpだたー。</a></p>
<p>ついでにシャッフルも。</p>
<pre class="brush: as3;">
public function shuffle(array:Array):Array{
	return array.sort(function():int{return int(Math.random()*3)-1});
}
</pre>
<p><a href="http://wonderfl.net/code/8cfa39c9e91a268791142fe605c010dc30338588">１行でArrayをシャッフルする</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2010/03/as3-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MTのcountupしてごにょごにょ</title>
		<link>http://www.ktu.jp/2010/03/mt%e3%81%aecountup%e3%81%97%e3%81%a6%e3%81%94%e3%81%ab%e3%82%87%e3%81%94%e3%81%ab%e3%82%87/</link>
		<comments>http://www.ktu.jp/2010/03/mt%e3%81%aecountup%e3%81%97%e3%81%a6%e3%81%94%e3%81%ab%e3%82%87%e3%81%94%e3%81%ab%e3%82%87/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 05:46:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MT]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=224</guid>
		<description><![CDATA[なにかと良く使うのでメモメモ。なんつーんだこれ。

&#60;MTSetVarBlock name=&#34;cat&#34;&#62;&#60;$MTCategoryLabel&#62;&#60;/MTSetVarBlock&#62;
&#60;MTSetvar name=&#34;count&#34; value=&#34;0&#34;&#62;
&#60;MTEntries category=&#34;$cat&#34;&#62;
&#60;MTSetVar name=&#34;count&#34; op=&#34;++&#34;&#62;
&#60;mt:if name=&#34;count&#34; op=&#34;%&#34; value=&#34;6&#34; eq=&#34;0&#34;&#62;
&#60;div class=&#34;contents_itemspage_thums_n&#34;&#62;
&#60;mt:else&#62;
&#60;div class=&#34;contents_itemspage_thums&#34;&#62;
&#60;/mt:if&#62;
&#60;/div&#62;

]]></description>
			<content:encoded><![CDATA[<p>なにかと良く使うのでメモメモ。なんつーんだこれ。</p>
<pre class="brush: xml;">
&lt;MTSetVarBlock name=&quot;cat&quot;&gt;&lt;$MTCategoryLabel&gt;&lt;/MTSetVarBlock&gt;
&lt;MTSetvar name=&quot;count&quot; value=&quot;0&quot;&gt;
&lt;MTEntries category=&quot;$cat&quot;&gt;
&lt;MTSetVar name=&quot;count&quot; op=&quot;++&quot;&gt;
&lt;mt:if name=&quot;count&quot; op=&quot;%&quot; value=&quot;6&quot; eq=&quot;0&quot;&gt;
&lt;div class=&quot;contents_itemspage_thums_n&quot;&gt;
&lt;mt:else&gt;
&lt;div class=&quot;contents_itemspage_thums&quot;&gt;
&lt;/mt:if&gt;
&lt;/div&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2010/03/mt%e3%81%aecountup%e3%81%97%e3%81%a6%e3%81%94%e3%81%ab%e3%82%87%e3%81%94%e3%81%ab%e3%82%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MTで概要がない時は本文をいれないようにする</title>
		<link>http://www.ktu.jp/2010/03/mt_mtentryexcerpt/</link>
		<comments>http://www.ktu.jp/2010/03/mt_mtentryexcerpt/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 05:24:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MT]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=213</guid>
		<description><![CDATA[
&#60;MTSetVarBlock name=&#34;entrydescript&#34;&#62;&#60;$MTEntryExcerpt no_generate=&#34;1&#34;$&#62;&#60;/MT [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml;">
&lt;MTSetVarBlock name=&quot;entrydescript&quot;&gt;&lt;$MTEntryExcerpt no_generate=&quot;1&quot;$&gt;&lt;/MTSetVarBlock&gt;
&lt;MTIf name=&quot;entrydescript&quot; ne=&quot;&quot;&gt;
&lt;$MTEntryExcerpt$&gt;&quot;&gt;
&lt;MTElse&gt;
&lt;/MTIf&gt;
</pre>
<p><a href="http://www.zelazny.mydns.jp/archives/000908.php">こちら</a>を参考にさせていただきました。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2010/03/mt_mtentryexcerpt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>携帯サイトの分岐</title>
		<link>http://www.ktu.jp/2010/02/%e6%90%ba%e5%b8%af%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ae%e5%88%86%e5%b2%90/</link>
		<comments>http://www.ktu.jp/2010/02/%e6%90%ba%e5%b8%af%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ae%e5%88%86%e5%b2%90/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 07:38:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=211</guid>
		<description><![CDATA[RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^(DoCoMo&#124;KDDI\-&#124;SoftBank&#124;Vodafone&#124;J-PHONE&#124;MOT\-)
RewriteRule . [...]]]></description>
			<content:encoded><![CDATA[<p>RewriteEngine On<br />
RewriteCond %{HTTP_USER_AGENT} ^(DoCoMo|KDDI\-|SoftBank|Vodafone|J-PHONE|MOT\-)<br />
RewriteRule .* url [R,L]</p>
<p>同サイトだとループしてしまうので、別途以下のhtaccessを携帯サイトのフォルダに。<br />
RewriteEngine Off</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2010/02/%e6%90%ba%e5%b8%af%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ae%e5%88%86%e5%b2%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>クラスを文字列で参照したい</title>
		<link>http://www.ktu.jp/2010/02/%e3%82%af%e3%83%a9%e3%82%b9%e3%82%92%e6%96%87%e5%ad%97%e5%88%97%e3%81%a7%e5%8f%82%e7%85%a7%e3%81%97%e3%81%9f%e3%81%84/</link>
		<comments>http://www.ktu.jp/2010/02/%e3%82%af%e3%83%a9%e3%82%b9%e3%82%92%e6%96%87%e5%ad%97%e5%88%97%e3%81%a7%e5%8f%82%e7%85%a7%e3%81%97%e3%81%9f%e3%81%84/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 05:01:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[as3]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=209</guid>
		<description><![CDATA[as3以前には良く使ってた手法。as3ではこんな感じでやるみたい。

import flash.utils.getDefinitionByName;
for (var i:int = 0; i&#60;3; i++) {
 [...]]]></description>
			<content:encoded><![CDATA[<p>as3以前には良く使ってた手法。as3ではこんな感じでやるみたい。</p>
<pre class="brush: as3;">
import flash.utils.getDefinitionByName;
for (var i:int = 0; i&lt;3; i++) {
  var name_str:String = &quot;Pen&quot;+i;
  var myClass:Class = Class(getDefinitionByName(name_str));
  var myInstance:MovieClip = new myClass();
  addChild(myInstance);
  // インスタンスの座標などを設定する処理
}
</pre>
<p><a href="http://f-site.org/articles/2008/01/17051234.html" target="_blank">F-site : クラスを文字列で参照したい</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2010/02/%e3%82%af%e3%83%a9%e3%82%b9%e3%82%92%e6%96%87%e5%ad%97%e5%88%97%e3%81%a7%e5%8f%82%e7%85%a7%e3%81%97%e3%81%9f%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>豚キムチ（キムチなし）</title>
		<link>http://www.ktu.jp/2009/11/butakimuchi/</link>
		<comments>http://www.ktu.jp/2009/11/butakimuchi/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 13:07:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Food]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=194</guid>
		<description><![CDATA[
冷蔵庫にニラがあったので何かを作ろうと思って、豚キムチに決めて豚肉を買ってきたら、途中でキムチがないことに気づきキムチ抜きの豚キムチを作った。豚キムチになってないけど、豚キムチ風で。昆布つゆに豆板醤を混ぜて、最後に卵を [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.ktu.jp/wp-content/uploads/2009/11/IMGP2335.JPG" alt="IMGP2335" title="IMGP2335" width="570" height="379" class="alignnone size-full wp-image-195" /></p>
<p>冷蔵庫にニラがあったので何かを作ろうと思って、豚キムチに決めて豚肉を買ってきたら、途中でキムチがないことに気づきキムチ抜きの豚キムチを作った。豚キムチになってないけど、豚キムチ風で。昆布つゆに豆板醤を混ぜて、最後に卵を絡めてできあがり。だいぶ甘めになったけど美味かった。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2009/11/butakimuchi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>新宿御苑</title>
		<link>http://www.ktu.jp/2009/11/shinjukugyoen/</link>
		<comments>http://www.ktu.jp/2009/11/shinjukugyoen/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 15:10:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[log]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=198</guid>
		<description><![CDATA[
嫁の里帰り出産前の最後の休日。思い出の地「新宿御苑」へ。当日は天皇成婚のおかげで入場無料。催し物もやっていて大勢の人がいた。紅葉もいくらかしていて、夕方にもなると大分寒い。家で入れたコーヒーを飲みつつごろりする。行くの [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.ktu.jp/wp-content/uploads/2009/11/IMGP2291.JPG" alt="IMGP2291" title="IMGP2291" width="570" height="379" class="alignnone size-full wp-image-199" /></p>
<p>嫁の里帰り出産前の最後の休日。思い出の地「新宿御苑」へ。当日は天皇成婚のおかげで入場無料。催し物もやっていて大勢の人がいた。紅葉もいくらかしていて、夕方にもなると大分寒い。家で入れたコーヒーを飲みつつごろりする。行くのが遅くなってしまったから少しの時間しかいれなかったけど、行けてよかったと思う。嫁とはつきあう前からよく来たもんだ。<br />
子供が産まれて大きくなったら、一緒に来たいね。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2009/11/shinjukugyoen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>シーンの移動/Progression3 メモ</title>
		<link>http://www.ktu.jp/2009/11/progression3-scene/</link>
		<comments>http://www.ktu.jp/2009/11/progression3-scene/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 07:58:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[progression3]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=189</guid>
		<description><![CDATA[
var prog = getProgressionById(&#34;index&#34;);
prog.goto(new SceneId(&#34;/index/&#34;+name));

getProgr [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: as3;">
var prog = getProgressionById(&quot;index&quot;);
prog.goto(new SceneId(&quot;/index/&quot;+name));
</pre>
<p>getProgressionByIdでインスタンスを取得してgotoで移動。</p>
<pre class="brush: as3;">
function ():void {
  if (tween)
  {
    tween.interrupt();
  }
  tween = new DoTweener(hoge, { x:0 , time:1 }, { timeOut:0 } );
  tween.execute();
},
</pre>
<p>initObjectに&#8221;timeOut:0&#8243;を追加。タイムアウトエラーが出るのを回避。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2009/11/progression3-scene/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3無名関数の破棄</title>
		<link>http://www.ktu.jp/2009/11/argumentscallee/</link>
		<comments>http://www.ktu.jp/2009/11/argumentscallee/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 11:01:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[as3]]></category>

		<guid isPermaLink="false">http://www.ktu.jp/?p=187</guid>
		<description><![CDATA[
addEventListener(Event.ENTER_FRAME, function(e:Event):void {trace(&#34;ほげ&#34;)});
//
removeEventListener(Event.ENTER_FRAME, arguments.callee);

]]></description>
			<content:encoded><![CDATA[<pre class="brush: as3;">
addEventListener(Event.ENTER_FRAME, function(e:Event):void {trace(&quot;ほげ&quot;)});
//
removeEventListener(Event.ENTER_FRAME, arguments.callee);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ktu.jp/2009/11/argumentscallee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
