<?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>NaoHachi.net &#187; 自分用メモ</title>
	<atom:link href="http://naohachi.net/tag/%e8%87%aa%e5%88%86%e7%94%a8%e3%83%a1%e3%83%a2/feed" rel="self" type="application/rss+xml" />
	<link>http://naohachi.net</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 09:00:56 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>this [メモ]</title>
		<link>http://naohachi.net/2009/05/19/1570.html</link>
		<comments>http://naohachi.net/2009/05/19/1570.html#comments</comments>
		<pubDate>Tue, 19 May 2009 11:18:43 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[スクリプトメモ]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=1570</guid>
		<description><![CDATA[[php]
　
object.x = this["btn_" + cp].x;
　
[/php]
object.xの位置を、このムービークリップにあるボタンcpのx座標として設定
]]></description>
			<content:encoded><![CDATA[<p>[php]<br />
　<br />
object.x = this["btn_" + cp].x;<br />
　<br />
[/php]</p>
<p>object.xの位置を、このムービークリップにあるボタンcpのx座標として設定</p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=1570&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2009/05/19/1570.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>外部ライブラリ用クラスパス初期設定 [FlashDevelop]</title>
		<link>http://naohachi.net/2009/02/28/1231.html</link>
		<comments>http://naohachi.net/2009/02/28/1231.html#comments</comments>
		<pubDate>Fri, 27 Feb 2009 17:00:32 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=1231</guid>
		<description><![CDATA[外部ライブラリ用に最初にクラスパスを設定しておくとコード補完が使えるので便利。
ツール → Global Classpaths → Add Classpathでフォルダを指定する。
※自分はFlash CS4の外部ライブ [...]]]></description>
			<content:encoded><![CDATA[<p>外部ライブラリ用に最初にクラスパスを設定しておくとコード補完が使えるので便利。</p>
<p><strong>ツール</strong> → <strong>Global Classpaths</strong> → <strong>Add Classpath</strong>でフォルダを指定する。</p>
<p>※自分は<a href="http://naohachi.net/2009/02/19/1214.html" target="_blank">Flash CS4の外部ライブラリ用に作ったフォルダ</a>を指定。 例 ： <strong>C:\as3_library<br />
</strong><br />
上記作業をしておけば以後コード補完を行うことができるようになる。。。</p>
<p>　</p>
<p>プロジェクト単位で設定したい場合は、、、<br />
<strong>Project</strong> → <strong>Propertiesダイアログ</strong> → <strong>Classpathsタブ</strong> → <strong>Add Classpath</strong>から設定する。</p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=1231&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2009/02/28/1231.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自分用メモ</title>
		<link>http://naohachi.net/2009/02/24/1217.html</link>
		<comments>http://naohachi.net/2009/02/24/1217.html#comments</comments>
		<pubDate>Tue, 24 Feb 2009 07:48:33 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=1217</guid>
		<description><![CDATA[このたのしんでいる雰囲気がなんともいえず好きなんだ。。。
　
・土日 Flash のススメ(1)：表現のヒントを探し求めて
・土日 Flash のススメ(2)：作りながら考え、考えながら作る。
・土日 Flash のスス [...]]]></description>
			<content:encoded><![CDATA[<p>このたのしんでいる雰囲気がなんともいえず好きなんだ。。。</p>
<p>　</p>
<p>・<a href="http://www.cbc-net.com/dots/shuhei_terai/terai_01/" target="_blank">土日 Flash のススメ(1)：表現のヒントを探し求めて</a></p>
<p>・<a href="http://www.cbc-net.com/dots/shuhei_terai/terai_02/" target="_blank">土日 Flash のススメ(2)：作りながら考え、考えながら作る。</a></p>
<p>・<a href="http://www.cbc-net.com/dots/shuhei_terai/terai_03/" target="_blank">土日 Flash のススメ(3)：ブログで紹介したくなるサイトとは？</a></p>
<p>・<a href="http://www.cbc-net.com/dots/shuhei_terai/terai_04/" target="_blank">土日 Flash のススメ(4)：動きをつけるということ（イージングについて考える）</a></p>
<p>・<a href="http://www.cbc-net.com/dots/shuhei_terai/terai_05/" target="_blank">土日 Flash のススメ(5)：創作のスタートダッシュとアイデアの展開</a></p>
<p>※<a href="http://www.trick7.com" target="_blank">trick7 寺井周平</a></p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=1217&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2009/02/24/1217.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>外部ライブラリ用クラスパス初期設定 [Flash CS4]</title>
		<link>http://naohachi.net/2009/02/19/1214.html</link>
		<comments>http://naohachi.net/2009/02/19/1214.html#comments</comments>
		<pubDate>Thu, 19 Feb 2009 09:36:16 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[CS4]]></category>
		<category><![CDATA[ライブラリ]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Tweener]]></category>
		<category><![CDATA[メモ]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=1214</guid>
		<description><![CDATA[忘れないように自分用のメモ。。。
　
Tweenerライブラリを設定する場合 ※Tweener ： http://code.google.com/p/tweener/
・例えば、Cドライブにas3_libraryというフ [...]]]></description>
			<content:encoded><![CDATA[<p>忘れないように自分用のメモ。。。</p>
<p>　</p>
<p><strong>Tweenerライブラリを設定する場合</strong> ※Tweener ： <a href="http://code.google.com/p/tweener/" target="_blank">http://code.google.com/p/tweener/</a></p>
<p>・例えば、Cドライブにas3_libraryというフォルダを作る。「C:\as3_library」</p>
<p>・その中にTweenerというフォルダを作りダウンロードしたcaurinaフォルダを入れる。</p>
<p>・Flash CS4のメニュー → 環境設定 → ActionScript → ActionScript3.0 → 詳細設定を開く。</p>
<p>・ソースパスの設定をする。</p>
<p>・フォルダの形をしたボタン(パスの参照)をクリックしフォルダを指定。「C:\as3_library\Tweener」</p>
<p>・OKをクリックし環境設定画面を閉じる。</p>
<p>これで準備完了。</p>
<p>　</p>
<p>このように設定しておけば次からTweenerライブラリを使いたいときはimport文を記述すればいつでも使える。</p>
<p>他のライブラリも同様の方法で出来る。</p>
<p>　</p>
<p>　</p>
<p><strong>試しにTweenerをライブラリを使って動かしてみる</strong></p>
<p>・flaファイル新規作成</p>
<p>・ステージに矩形ツールで四角を描く。</p>
<p>・その四角をシンボルに変換（ムービークリップ、基準点は左上）し、インスタンス名を「mc」にする。</p>
<p>・importでの呼び出し文は「import caurina.transitions.Tweener;」でOK！</p>
<p>・上記import文の下に続けて「Tweener.addTween(mc, {x:500, time:1, transition:&#8221;easeOutBack&#8221;});」と</p>
<p>　記述するとTweenerライブラリの効果によって作った四角(mc)が右に動くのが確認出来る。。。</p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=1214&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2009/02/19/1214.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>新規ファイル作成時の{}位置を調整 [Flash Develop]</title>
		<link>http://naohachi.net/2009/02/12/1184.html</link>
		<comments>http://naohachi.net/2009/02/12/1184.html#comments</comments>
		<pubDate>Thu, 12 Feb 2009 07:48:35 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[Flash Develop]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=1184</guid>
		<description><![CDATA[新規ファイル作成時の｛｝の位置が嫌だったのでテンプレートを書き換えてみた。
ついでにコメントも入るように。。。
　
変更前（新規作成時）
[php]
package
　　　　　{
　　　　　public class Ne [...]]]></description>
			<content:encoded><![CDATA[<p>新規ファイル作成時の｛｝の位置が嫌だったのでテンプレートを書き換えてみた。</p>
<p>ついでにコメントも入るように。。。</p>
<p>　</p>
<h3>変更前（新規作成時）</h3>
<p>[php]<br />
package<br />
　　　　　{</p>
<p>　　　　　public class NewClass<br />
　　　　　{</p>
<p>　　　　　　　　　public function NewClass()<br />
　　　　　　　　　{</p>
<p>　　　　　　　　　}<br />
　　　　　}</p>
<p>}<br />
[/php]</p>
<p>　</p>
<h3>変更後（新規作成時）</h3>
<p>[php]<br />
package {</p>
<p>　　　　　public class NewClass {<br />
　　　　　　　　　//メンバ変数</p>
<p>　　　　　　　　　//コンストラクタ<br />
　　　　　　　　　public function NewClass() {</p>
<p>　　　　　　　　　}<br />
　　　　　}</p>
<p>}<br />
[/php]</p>
<p>　</p>
<p>　</p>
<p><strong>以下、変更したファイルとその内容<br />
↓　↓　↓　↓　↓　↓　↓</strong></p>
<p>　</p>
<p>・Templates → AS3.fdtファイル を書き換え<br />
[php]<br />
package {</p>
<p>　　　public class $(EntryPoint) {</p>
<p>　　　}</p>
<p>}<br />
[/php]</p>
<p>　</p>
<p>・Templates → ProjectFiles → AS3Project → Class.as.fdt を書き換え<br />
[php]package {<br />
　　　　public class $(EntryPoint) {<br />
　　　　　　　　　//メンバ変数</p>
<p>　　　　　　　　　//コンストラクタ<br />
　　　　　　　　　public function ():void{</p>
<p>　　　　　　　　　}<br />
　　　　　}</p>
<p>}<br />
[/php]</p>
<p>　</p>
<p><strong>自己責任＆バックアップ必須！！</strong></p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=1184&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2009/02/12/1184.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>導入の覚え書き [Flash Develop]</title>
		<link>http://naohachi.net/2009/02/10/1157.html</link>
		<comments>http://naohachi.net/2009/02/10/1157.html#comments</comments>
		<pubDate>Tue, 10 Feb 2009 11:43:50 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[Flash Develop]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=1157</guid>
		<description><![CDATA[自分用のメモなのであまり参考にしないように。
　
・ダウンロード＆インストール（FlashDevelop）
「FlashDevelop 3.0.0 Beta8 released」をインストールして、
続けて「FlashD [...]]]></description>
			<content:encoded><![CDATA[<p>自分用のメモなのであまり参考にしないように。</p>
<p>　</p>
<p>・<strong>ダウンロード＆インストール</strong>（<a href="http://www.flashdevelop.org/community/viewforum.php?f=11" target="_blank">FlashDevelop</a>）<br />
「FlashDevelop 3.0.0 Beta8 released」をインストールして、<br />
続けて「FlashDevelop 3.0.0 RC1 released」をインストールした。<br />
※最新版のみをインストールしたら動かなかった。。。（謎）</p>
<p>　</p>
<p>・<strong>日本語化ファイルをダウンロード</strong>（<a href="http://www.logicalyze.net/blog/?p=1560" target="_blank">logicalyze::blog</a>）<br />
インストールした FlashDevelop を起動してメニューから<br />
Tools → Application Files を開く。<br />
Settingsフォルダ にダウンロードしたファイルを上書きする。<br />
FlashDevelopを再起動 → 日本語になってるはず。。。</p>
<p>　</p>
<p>・<strong>Flex3 SDK インストール</strong>（<a href="http://www.adobe.com/support/documentation/jp/flex/3/releasenotes_flex3_sdk.html" target="_blank">Flex3 SDK</a>）<br />
Flex3 SDK をダウンロードして任意の場所に設置。 （C:\flex_sdk_3）<br />
FlashDevelop の メニュー → ツール → プログラム設定 から AS3Context を選択。<br />
右側メニューFlex SDK Location から、Flex3 SDK を設置したディレクトリを指定する。</p>
<p>　</p>
<p>・<strong>FlashViewerの設定</strong><br />
FlashDevelop の メニュー → ツール → プログラム設定 から FlashViewer を選択。<br />
右側メニューExternal Player Path から、FlashPlayerを指定する。<br />
例：\flexsdk3\runtimes\player\10\win\FlashPlayer.exe</p>
<p>　</p>
<p>とりあえず完了。</p>
<p>　</p>
<p>※次に行うこと<br />
・<a href="http://naohachi.net/2009/02/28/1231.html" target="_blank">外部ライブラリ用クラスパス初期設定 [FlashDevelop]</a><br />
・<a href="http://naohachi.net/2009/02/12/1184.html" target="_blank">新規ファイル作成時の{}位置を調整 [Flash Develop]</a></p>
<p>　</p>
<hr />
<strong>参考サイト</strong><br />
・MOMOYA.Labs ： <a href="http://momoya.me.land.to/?pid=1" target="_blank">http://momoya.me.land.to</a><br />
・logicalyze::blog ： <a href="http://www.logicalyze.net/blog/?p=1560" target="_blank">http://www.logicalyze.net</a><br />
・trick7 blog ： <a href="http://www.trick7.com/blog/2008/02/14-102239.php" target="_blank">http://www.trick7.com</a><br />
・Flash Develop + CS3 &#8211; Flash OOP Japan ： <a href="http://cs3book.flashoop.jp/wiki/index.php?Flash%20Develop%20%2B%20CS3" target="_blank">http://cs3book.flashoop.jp</a></p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=1157&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2009/02/10/1157.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>うるう年 [メモ]</title>
		<link>http://naohachi.net/2009/01/30/1113.html</link>
		<comments>http://naohachi.net/2009/01/30/1113.html#comments</comments>
		<pubDate>Fri, 30 Jan 2009 07:34:58 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[スクリプトメモ]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=1113</guid>
		<description><![CDATA[うるう年というのはグレゴリオ暦によると、、、
西暦が、4で割り切れる必要がある。
しかし、4で割り切れても、100で割り切れる年はうるう年ではない。
ただし、4でも100でも割り切れたとしても、400で割り切れる年はうる [...]]]></description>
			<content:encoded><![CDATA[<p>うるう年というのは<a href="http://ja.wikipedia.org/wiki/%E3%82%B0%E3%83%AC%E3%82%B4%E3%83%AA%E3%82%AA%E6%9A%A6" target="_blank">グレゴリオ暦</a>によると、、、</p>
<p>西暦が、4で割り切れる必要がある。</p>
<p>しかし、4で割り切れても、100で割り切れる年はうるう年ではない。</p>
<p>ただし、4でも100でも割り切れたとしても、400で割り切れる年はうるう年である。</p>
<p>　</p>
<p><strong>条件式</strong><br />
(((4で割り切れる) かつ (100では割り切れない)) もしくは (400で割り切れる))</p>
<p><strong>ActionScript3.0</strong><br />
[php]<br />
function Check () {<br />
　　if (((year % 4 == 0) &amp;&amp; (year % 100 != 0)) || (year % 400 == 0)) {<br />
　　　　return true;<br />
　　} else {<br />
　　　　return false;<br />
　　}<br />
}<br />
[/php]</p>
<p>　</p>
<p><strong>1900年</strong> = 4で割り切れる。100でも割り切れる。400では割り切れない。 ← <strong>うるう年ではない</strong></p>
<p><strong>2000年</strong> = 4で割り切れる。100でも割り切れる。400でも割り切れる。 ← <strong>うるう年</strong></p>
<p>　</p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=1113&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2009/01/30/1113.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>アルファと詳細の違い [アニメーション]</title>
		<link>http://naohachi.net/2008/12/17/969.html</link>
		<comments>http://naohachi.net/2008/12/17/969.html#comments</comments>
		<pubDate>Wed, 17 Dec 2008 09:42:03 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[タイムライン]]></category>
		<category><![CDATA[制作]]></category>
		<category><![CDATA[アニメーション]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=969</guid>
		<description><![CDATA[

　


上がアルファのフェードイン・アウト。
下が詳細から設定したフェードイン・アウト。
それだけの違いなのに結果は大きく変わってくる。
なかなか小粋な技ですね。。。
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="350" height="262" id="alpha_081217" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="http://naohachi.net/blog_up_fla/081217/alpha_081217.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://naohachi.net/blog_up_fla/081217/alpha_081217.swf" quality="high" bgcolor="#ffffff" width="350" height="262" name="alpha_081217" align="middle" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_jp" /><br />
</object></p>
<p>　</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="350" height="262" id="detail_081217" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="http://naohachi.net/blog_up_fla/081217/detail_081217.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://naohachi.net/blog_up_fla/081217/detail_081217.swf" quality="high" bgcolor="#ffffff" width="350" height="262" name="detail_081217" align="middle" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_jp" /><br />
</object></p>
<p>上がアルファのフェードイン・アウト。</p>
<p>下が詳細から設定したフェードイン・アウト。</p>
<p>それだけの違いなのに結果は大きく変わってくる。</p>
<p>なかなか小粋な技ですね。。。</p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=969&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2008/12/17/969.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>int型 uint型 [メモ]</title>
		<link>http://naohachi.net/2008/11/14/833.html</link>
		<comments>http://naohachi.net/2008/11/14/833.html#comments</comments>
		<pubDate>Fri, 14 Nov 2008 08:09:00 +0000</pubDate>
		<dc:creator>NaoHachi</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[スクリプトメモ]]></category>
		<category><![CDATA[自分用メモ]]></category>

		<guid isPermaLink="false">http://naohachi.net/?p=833</guid>
		<description><![CDATA[int / uint
表現できる範囲
int が、 -2,147,483,648 から 2,147,483,647。
uint が、 0 から 4,294,967,295 。
　
この範囲で足りない場合には Number [...]]]></description>
			<content:encoded><![CDATA[<p><strong>int</strong> / <strong>uint</strong></p>
<p>表現できる範囲<br />
<strong>int</strong> が、 -2,147,483,648 から 2,147,483,647。<br />
<strong>uint</strong> が、 0 から 4,294,967,295 。</p>
<p>　</p>
<p>この範囲で足りない場合には <strong>Number</strong> を使うことになる。</p>
<p><strong>int</strong> / <strong>uint</strong> を使用したほうが <strong>Number</strong> よりも演算速度は速いため、<br />
<strong>int</strong> / <strong>uint</strong> で用が足りる場合はこちらを選ぶのがよさそう。</p>
<img src="http://naohachi.net/00_wp/?ak_action=api_record_view&id=833&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://naohachi.net/2008/11/14/833.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
