<?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>ActionScript3.0を極める</title>
	<atom:link href="http://ojigotts-app.zono.cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://ojigotts-app.zono.cc</link>
	<description>楽しい事だけをするのです。壁は乗り越えるのです。。</description>
	<lastBuildDate>Mon, 26 Dec 2011 08:41:18 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flash離れ</title>
		<link>http://ojigotts-app.zono.cc/2011/12/26/flash%e9%9b%a2%e3%82%8c/</link>
		<comments>http://ojigotts-app.zono.cc/2011/12/26/flash%e9%9b%a2%e3%82%8c/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 08:41:18 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=909</guid>
		<description><![CDATA[こんな日がこようとは夢にも思わず。。　１２年近くFlash制作をやり続けてきた自分としてはホント悲しい AndroidOS,iOS用のアプリをネイティブで開発することに面倒さも感じつつもAdobeAIRアプリのパフォーマンスの低さに未来を感じなく成り、 最終的にネイティブ開発に踏み切った。 AndroidはJAVAなので、ActionScript3.0からは移行しやすく しかもネイティブ恩恵を体感したいまは「すごい！もうJAVAで良いよ！」と思わせられた Objective-Cは今格闘中。。　CPPの書き方を思い出し中。。TableViewをコアな部分まで理解するのはちょっと時間がかかりそう にしても、他の言語を理解するスピードが比較的早いのは さんざんFlashで出来ない事をなんとか出来るように格闘してきた「工夫するチカラ」 ActionScript3.0学習がそれをもたらしたのだと思う。 ホント、Flash&#038;ActionScript3.0ありがとう 今後は、チラ見だけの付き合いになるかもしれませんが宜しくお願いします。　で、ネイティブアプリに負けないパフォーマンス。。いや、ネイティブ以上の凄い事がやれるように成長して欲しいと願っていますよ。。　本気で でわ]]></description>
			<content:encoded><![CDATA[<p>こんな日がこようとは夢にも思わず。。　１２年近くFlash制作をやり続けてきた自分としてはホント悲しい</p>
<p>AndroidOS,iOS用のアプリをネイティブで開発することに面倒さも感じつつもAdobeAIRアプリのパフォーマンスの低さに未来を感じなく成り、</p>
<p>最終的にネイティブ開発に踏み切った。</p>
<p>AndroidはJAVAなので、ActionScript3.0からは移行しやすく しかもネイティブ恩恵を体感したいまは「すごい！もうJAVAで良いよ！」と思わせられた</p>
<p>Objective-Cは今格闘中。。　CPPの書き方を思い出し中。。TableViewをコアな部分まで理解するのはちょっと時間がかかりそう</p>
<p>にしても、他の言語を理解するスピードが比較的早いのは さんざんFlashで出来ない事をなんとか出来るように格闘してきた「工夫するチカラ」</p>
<p>ActionScript3.0学習がそれをもたらしたのだと思う。</p>
<p>ホント、Flash&#038;ActionScript3.0ありがとう</p>
<p>今後は、チラ見だけの付き合いになるかもしれませんが宜しくお願いします。　で、ネイティブアプリに負けないパフォーマンス。。いや、ネイティブ以上の凄い事がやれるように成長して欲しいと願っていますよ。。　本気で</p>
<p>でわ</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2011/12/26/flash%e9%9b%a2%e3%82%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>メモリの開放</title>
		<link>http://ojigotts-app.zono.cc/2011/11/04/%e3%83%a1%e3%83%a2%e3%83%aa%e3%81%ae%e9%96%8b%e6%94%be/</link>
		<comments>http://ojigotts-app.zono.cc/2011/11/04/%e3%83%a1%e3%83%a2%e3%83%aa%e3%81%ae%e9%96%8b%e6%94%be/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 09:47:20 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>
		<category><![CDATA[メモリ解放]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=904</guid>
		<description><![CDATA[//強制的にガベージコレクションさせる flash.system.System.gc();]]></description>
			<content:encoded><![CDATA[<p>//強制的にガベージコレクションさせる<br />
flash.system.System.gc();</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2011/11/04/%e3%83%a1%e3%83%a2%e3%83%aa%e3%81%ae%e9%96%8b%e6%94%be/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>リンク情報があればタグで囲む正規表現</title>
		<link>http://ojigotts-app.zono.cc/2011/08/19/%e3%83%aa%e3%83%b3%e3%82%af%e6%83%85%e5%a0%b1%e3%81%8c%e3%81%82%e3%82%8c%e3%81%b0%e3%82%bf%e3%82%b0%e3%81%a7%e5%9b%b2%e3%82%80%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be/</link>
		<comments>http://ojigotts-app.zono.cc/2011/08/19/%e3%83%aa%e3%83%b3%e3%82%af%e6%83%85%e5%a0%b1%e3%81%8c%e3%81%82%e3%82%8c%e3%81%b0%e3%82%bf%e3%82%b0%e3%81%a7%e5%9b%b2%e3%82%80%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 01:52:09 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=891</guid>
		<description><![CDATA[// リンク情報があれば&#60;a&#62;タグで囲む正規表現 str = str.replace&#40;new RegExp&#40;&#34;((?:https?&#124;ftp)(?::\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&#38;=+\$,%#]+))&#34;,&#34;g&#34;&#41;,&#34;&#60;u&#62;&#60;a href=\&#34;$1\&#34; target='_blank'&#62;$1&#60;/a&#62;&#60;/u&#62;&#34;&#41;;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// リンク情報があれば&lt;a&gt;タグで囲む正規表現</span>
str = str<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">replace</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">RegExp</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;((?:https?|ftp)(?::<span style="">\/</span><span style="">\/</span>[-_.!~*<span style="">\'</span>()a-zA-Z0-9;<span style="">\/</span>?:<span style="">\@</span>&amp;=+<span style="">\$</span>,%#]+))&quot;</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;g&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;&lt;u&gt;&lt;a href=<span style="">\&quot;</span>$1<span style="">\&quot;</span> target='_blank'&gt;$1&lt;/a&gt;&lt;/u&gt;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2011/08/19/%e3%83%aa%e3%83%b3%e3%82%af%e6%83%85%e5%a0%b1%e3%81%8c%e3%81%82%e3%82%8c%e3%81%b0%e3%82%bf%e3%82%b0%e3%81%a7%e5%9b%b2%e3%82%80%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>対象オブジェクト内の子オブジェクトを全て消す</title>
		<link>http://ojigotts-app.zono.cc/2011/05/09/%e5%af%be%e8%b1%a1%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e5%86%85%e3%81%ae%e5%ad%90%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e5%85%a8%e3%81%a6%e6%b6%88%e3%81%99/</link>
		<comments>http://ojigotts-app.zono.cc/2011/05/09/%e5%af%be%e8%b1%a1%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e5%86%85%e3%81%ae%e5%ad%90%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e5%85%a8%e3%81%a6%e6%b6%88%e3%81%99/#comments</comments>
		<pubDate>Mon, 09 May 2011 09:50:07 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=881</guid>
		<description><![CDATA[表題の通り、オブジェクト全部消したいときとかに使います 1 2 3 while &#40;this.numChildren &#62; 0&#41; &#123; this.removeChildAt&#40;0&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<p>表題の通り、オブジェクト全部消したいときとかに使います</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">while</span> <span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">numChildren</span> <span style="color: #000066; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
     <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">removeChildAt</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2011/05/09/%e5%af%be%e8%b1%a1%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e5%86%85%e3%81%ae%e5%ad%90%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e5%85%a8%e3%81%a6%e6%b6%88%e3%81%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SWCコンポーネントの保存場所</title>
		<link>http://ojigotts-app.zono.cc/2011/02/25/swc%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e4%bf%9d%e5%ad%98%e5%a0%b4%e6%89%80/</link>
		<comments>http://ojigotts-app.zono.cc/2011/02/25/swc%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e4%bf%9d%e5%ad%98%e5%a0%b4%e6%89%80/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 04:53:35 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[swc]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=870</guid>
		<description><![CDATA[環境設定>ActionScript3.0>SWCの追加でもよいのですが。 C:\Program Files (x86)\Adobe\Adobe Flash CS[バージョン]\Common\Configuration\Components\内 においてもよい カスタムコンポーネントとか、カテゴリ別にフォルダを作って管理してもよい 再起動すると、コンポーネントパネルに反映されます]]></description>
			<content:encoded><![CDATA[<p>環境設定>ActionScript3.0>SWCの追加でもよいのですが。</p>
<p>C:\Program Files (x86)\Adobe\Adobe Flash CS[バージョン]\Common\Configuration\Components\内</p>
<p>においてもよい</p>
<p>カスタムコンポーネントとか、カテゴリ別にフォルダを作って管理してもよい<br />
再起動すると、コンポーネントパネルに反映されます</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2011/02/25/swc%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e4%bf%9d%e5%ad%98%e5%a0%b4%e6%89%80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>スタイルシートでAlertの外観を変更する</title>
		<link>http://ojigotts-app.zono.cc/2010/08/09/%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b7%e3%83%bc%e3%83%88%e3%81%a7alert%e3%81%ae%e5%a4%96%e8%a6%b3%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/</link>
		<comments>http://ojigotts-app.zono.cc/2010/08/09/%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b7%e3%83%bc%e3%83%88%e3%81%a7alert%e3%81%ae%e5%a4%96%e8%a6%b3%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 07:32:06 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=851</guid>
		<description><![CDATA[Alertとかの外観をスタイルシートで変更することが出来ます。 以下のようにスタイルシートで定義するだけなので非常に簡単 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 background-color: #000000; cornerRadius: 8; creationCompleteEffect: _Effect; title-style-name:alertTitle; color:#cccccc; font-family:verdana; font-size:11; area-fill:#000000; border-color:#000000; border-style:solid; drop-shadow-enabled:true; shadow-direction:center; shadow-distance:0; drop-shadow-color:#000000; button-style-name:but; fill-colors:#000000;]]></description>
			<content:encoded><![CDATA[<p>Alertとかの外観をスタイルシートで変更することが出来ます。<br />
以下のようにスタイルシートで定義するだけなので非常に簡単</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
cornerRadius<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">8</span><span style="color: #00AA00;">;</span>
creationCompleteEffect<span style="color: #00AA00;">:</span> _Effect<span style="color: #00AA00;">;</span>
title-style-name<span style="color: #00AA00;">:</span>alertTitle<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#cccccc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span>verdana<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">11</span><span style="color: #00AA00;">;</span>
area-fill<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
drop-shadow-enabled<span style="color: #00AA00;">:</span>true<span style="color: #00AA00;">;</span>
shadow-<span style="color: #000000; font-weight: bold;">direction</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
shadow-distance<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
drop-shadow-<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
button-style-name<span style="color: #00AA00;">:</span>but<span style="color: #00AA00;">;</span>
fill-colors<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/08/09/%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b7%e3%83%bc%e3%83%88%e3%81%a7alert%e3%81%ae%e5%a4%96%e8%a6%b3%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>魚？鳥？</title>
		<link>http://ojigotts-app.zono.cc/2010/07/20/%e9%ad%9a%e3%82%82%e9%b3%a5%e3%81%ae%e3%82%88%e3%81%86%e3%81%ab%e9%a3%9b%e3%81%b3%e3%81%9f%e3%81%84%ef%bc%9f/</link>
		<comments>http://ojigotts-app.zono.cc/2010/07/20/%e9%ad%9a%e3%82%82%e9%b3%a5%e3%81%ae%e3%82%88%e3%81%86%e3%81%ab%e9%a3%9b%e3%81%b3%e3%81%9f%e3%81%84%ef%bc%9f/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 09:09:55 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=841</guid>
		<description><![CDATA[前回の鳥の群行動のバージョンUP 羽ばたいてるような演出。クリックすると 魚になります]]></description>
			<content:encoded><![CDATA[<p>前回の鳥の群行動のバージョンUP</p>
<p>羽ばたいてるような演出。クリックすると 魚になります</p>
<p><object style="width: 550px; height: 420px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="420" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="play" value="false" /><param name="menu" value="false" /><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/07/BirdToFish.swf" /><embed style="width: 550px; height: 420px;" type="application/x-shockwave-flash" width="550" height="420" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/07/BirdToFish.swf" menu="false" play="false"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/07/20/%e9%ad%9a%e3%82%82%e9%b3%a5%e3%81%ae%e3%82%88%e3%81%86%e3%81%ab%e9%a3%9b%e3%81%b3%e3%81%9f%e3%81%84%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>鳥の群行動シミュレーション</title>
		<link>http://ojigotts-app.zono.cc/2010/07/20/%e9%b3%a5%e3%81%ae%e7%be%a4%e7%94%9f%e3%82%b7%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3/</link>
		<comments>http://ojigotts-app.zono.cc/2010/07/20/%e9%b3%a5%e3%81%ae%e7%be%a4%e7%94%9f%e3%82%b7%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 07:50:10 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=831</guid>
		<description><![CDATA[オブジェクトを追跡するスクリプトを色々試していたら、鳥の群行シミュレーションぽく表示されるようになったので ちょっと公開します。 画面クリックすると、鳥の形が変わるので動的に生成してるのだとわかるはず]]></description>
			<content:encoded><![CDATA[<p><object style="width: 550px; height: 450px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="play" value="false" /><param name="menu" value="false" /><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/07/WanderSeekTest1.swf" /><embed style="width: 550px; height: 450px;" type="application/x-shockwave-flash" width="550" height="450" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/07/WanderSeekTest1.swf" menu="false" play="false"></embed></object></p>
<p>オブジェクトを追跡するスクリプトを色々試していたら、鳥の群行シミュレーションぽく表示されるようになったので<br />
ちょっと公開します。<br />
画面クリックすると、鳥の形が変わるので動的に生成してるのだとわかるはず</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/07/20/%e9%b3%a5%e3%81%ae%e7%be%a4%e7%94%9f%e3%82%b7%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Object stage]はどこに？</title>
		<link>http://ojigotts-app.zono.cc/2010/06/25/object-stage%e3%81%af%e3%81%a9%e3%81%93%e3%81%ab%ef%bc%9f/</link>
		<comments>http://ojigotts-app.zono.cc/2010/06/25/object-stage%e3%81%af%e3%81%a9%e3%81%93%e3%81%ab%ef%bc%9f/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 04:08:20 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[Stage]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=821</guid>
		<description><![CDATA[FlashCS4で開発しているときは気にならなかった [Object stage] はじめからあるもんだと思っていたが、Flexで[Object stage]は CS4と同じような感覚で扱えなかった。 今までは、[this]の親をたどって[Object stage]を見つけていたが、 じつはもっと簡単に定義できたみたい ソースは以下 1 2 3 4 5 6 if &#40;stage&#41; init&#40;&#41;; else addEventListener&#40;Event.ADDED_TO_STAGE, init&#41;; &#160; function init&#40;evt:Event = null&#41;&#123; 　　//コンストラクタ &#125; これで、CS4,5と同じようにStage,thisが扱えるようになる。。。　知は力なり]]></description>
			<content:encoded><![CDATA[<p>FlashCS4で開発しているときは気にならなかった<br />
[Object stage]</p>
<p>はじめからあるもんだと思っていたが、Flexで[Object stage]は<br />
CS4と同じような感覚で扱えなかった。</p>
<p>今までは、[this]の親をたどって[Object stage]を見つけていたが、<br />
じつはもっと簡単に定義できたみたい</p>
<p>ソースは以下</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span><span style="color: #000000;">&#41;</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ADDED_TO_STAGE</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span>evt<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span> = <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
 　　<span style="color: #009900; font-style: italic;">//コンストラクタ</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>これで、CS4,5と同じようにStage,thisが扱えるようになる。。。　知は力なり</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/06/25/object-stage%e3%81%af%e3%81%a9%e3%81%93%e3%81%ab%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vertualとoverride</title>
		<link>http://ojigotts-app.zono.cc/2010/05/14/vertual%e3%81%a8override/</link>
		<comments>http://ojigotts-app.zono.cc/2010/05/14/vertual%e3%81%a8override/#comments</comments>
		<pubDate>Fri, 14 May 2010 02:45:11 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>
		<category><![CDATA[Class]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=812</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 // スーパークラス public class A&#123; public virtual function hoge&#40;&#41;:void&#123; trace&#40;&#34;AAAAA&#34;&#41;; &#125; &#125; &#160; // Aを継承したサブクラス public class B extends A&#123; &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/05/14/vertual%e3%81%a8override/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// スーパークラス</span>
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> A<span style="color: #000000;">&#123;</span>
  <span style="color: #0033ff; font-weight: bold;">public</span> virtual <span style="color: #339966; font-weight: bold;">function</span> hoge<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
    <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;AAAAA&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
  <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">// Aを継承したサブクラス</span>
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> B <span style="color: #0033ff; font-weight: bold;">extends</span> A<span style="color: #000000;">&#123;</span>
  <span style="color: #009900; font-style: italic;">// hoge メソッドを上書き</span>
  <span style="color: #0033ff; font-weight: bold;">public</span> override <span style="color: #339966; font-weight: bold;">function</span> hoge<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
    <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;BBBBB&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
  <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> TestClass<span style="color: #000000;">&#123;</span>
  <span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
    <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">b</span><span style="color: #000066; font-weight: bold;">:</span>B = <span style="color: #0033ff; font-weight: bold;">new</span> B<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #004993;">b</span><span style="color: #000066; font-weight: bold;">.</span>hoge<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
  <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>スーパークラスでvirtualをつけたメソッドは、サブクラスでoverrideをつけるとオーバーライドできる。<br />
デフォルトでは効かない。　多分、やたらとoverrideする様な仕様にしないようにですかね</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/05/14/vertual%e3%81%a8override/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlashBuilder4でAIR開発するとき</title>
		<link>http://ojigotts-app.zono.cc/2010/05/12/flashbuilder4%e3%81%a7air%e9%96%8b%e7%99%ba%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d/</link>
		<comments>http://ojigotts-app.zono.cc/2010/05/12/flashbuilder4%e3%81%a7air%e9%96%8b%e7%99%ba%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d/#comments</comments>
		<pubDate>Wed, 12 May 2010 04:29:52 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=810</guid>
		<description><![CDATA[FlashBuilder4でAIRアプリを作ってますが、Sparkコンポーネントで今までと 使い勝手が違うところが沢山ありました。 たいていの事は、try&#038;errorでなんとか解決してきましたが ウィンドウの透過でちと問題が出てきました mxだけの時は　[WindowedApplication] -> [Application]にして背景透過 1 2 &#60;mx:Application xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34; xmlns:mx=&#34;library://ns.adobe.com/flex/mx&#34; layout=&#34;absolute&#34; width=&#34;400&#34; height=&#34;300&#34; backgroundAlpha=&#34;0.0&#34;&#62; と app.xmlの以下の編集 1 2 3 &#60;systemChrome&#62;none&#60;/systemChrome&#62; &#60;transparent&#62;true&#60;/transparent&#62; &#60;visible&#62;true&#60;/visible&#62; 以上で透過できたが、今回ちょっと違う]]></description>
			<content:encoded><![CDATA[<p>FlashBuilder4でAIRアプリを作ってますが、Sparkコンポーネントで今までと<br />
使い勝手が違うところが沢山ありました。</p>
<p>たいていの事は、try&#038;errorでなんとか解決してきましたが<br />
ウィンドウの透過でちと問題が出てきました</p>
<p>mxだけの時は　[WindowedApplication] -> [Application]にして背景透過</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Application xmlns<span style="color: #000066; font-weight: bold;">:</span>fx=<span style="color: #990000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
                          xmlns<span style="color: #000066; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> layout=<span style="color: #990000;">&quot;absolute&quot;</span> <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;400&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;300&quot;</span> backgroundAlpha=<span style="color: #990000;">&quot;0.0&quot;</span><span style="color: #000066; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>と<br />
app.xmlの以下の編集</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">&lt;</span>systemChrome<span style="color: #000066; font-weight: bold;">&gt;</span>none<span style="color: #000066; font-weight: bold;">&lt;/</span>systemChrome<span style="color: #000066; font-weight: bold;">&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;</span>transparent<span style="color: #000066; font-weight: bold;">&gt;</span>true<span style="color: #000066; font-weight: bold;">&lt;/</span>transparent<span style="color: #000066; font-weight: bold;">&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;</span>visible<span style="color: #000066; font-weight: bold;">&gt;</span>true<span style="color: #000066; font-weight: bold;">&lt;/</span>visible<span style="color: #000066; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>以上で透過できたが、今回ちょっと違う</p>
<p><s:Application 〜</p>
<p>だと背景透過の backgroundAlphaが効かない。。。<br />
調べてみると、そもそも　s|Applicationには backgroundAlphaがプロパティとして用意されていない？<br />
デザインモードにしてプロパティを見ると、はっきりと背景の透過設定があるが、FlashBuilder4のヘルプサイトを見ると同s|Applicationには無いみたい。。。　？</p>
<p>もうちょっと調べる必要がある。。。　なんか見落としてるのかな〜　だれか教えて</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/05/12/flashbuilder4%e3%81%a7air%e9%96%8b%e7%99%ba%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>画面解像度の取得</title>
		<link>http://ojigotts-app.zono.cc/2010/05/07/%e7%94%bb%e9%9d%a2%e8%a7%a3%e5%83%8f%e5%ba%a6%e3%81%ae%e5%8f%96%e5%be%97/</link>
		<comments>http://ojigotts-app.zono.cc/2010/05/07/%e7%94%bb%e9%9d%a2%e8%a7%a3%e5%83%8f%e5%ba%a6%e3%81%ae%e5%8f%96%e5%be%97/#comments</comments>
		<pubDate>Fri, 07 May 2010 10:14:20 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=807</guid>
		<description><![CDATA[AdobeAIRアプリを作るとき、起動時にNativeWindowをモニタの中央に表示したいと気がある で、NativeWindowのWidth,Heightとモニタの解像度があれば動的にレイアウト出来る モニタの解像度を取得するスクリプトは以下 1 2 3 import flash.system.Capability; var w:int = Capabilities.screenResolutionX; //モニタの横幅 var h:int = Capabilities.screenResolutionY; //モニタの縦幅]]></description>
			<content:encoded><![CDATA[<p>AdobeAIRアプリを作るとき、起動時にNativeWindowをモニタの中央に表示したいと気がある<br />
で、NativeWindowのWidth,Heightとモニタの解像度があれば動的にレイアウト出来る</p>
<p>モニタの解像度を取得するスクリプトは以下</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.system</span><span style="color: #000066; font-weight: bold;">.</span>Capability<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> w<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span> = <span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">screenResolutionX</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">//モニタの横幅</span>
<span style="color: #6699cc; font-weight: bold;">var</span> h<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span> = <span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">screenResolutionY</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">//モニタの縦幅</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/05/07/%e7%94%bb%e9%9d%a2%e8%a7%a3%e5%83%8f%e5%ba%a6%e3%81%ae%e5%8f%96%e5%be%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>問い合わせ頂いたユーザ様各位</title>
		<link>http://ojigotts-app.zono.cc/2010/04/12/%e5%95%8f%e3%81%84%e5%90%88%e3%82%8f%e3%81%9b%e9%a0%82%e3%81%84%e3%81%9f%e3%83%a6%e3%83%bc%e3%82%b6%e6%a7%98%e5%90%84%e4%bd%8d/</link>
		<comments>http://ojigotts-app.zono.cc/2010/04/12/%e5%95%8f%e3%81%84%e5%90%88%e3%82%8f%e3%81%9b%e9%a0%82%e3%81%84%e3%81%9f%e3%83%a6%e3%83%bc%e3%82%b6%e6%a7%98%e5%90%84%e4%bd%8d/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 00:57:50 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=804</guid>
		<description><![CDATA[日頃より当サイトをご利用頂きありがとうございます。 私の覚書のために始めたサイトではありますが、最近では技術的な質問や講習会に招かれることも多くなり、このサイトの役目が変化してきていることを感じています。 で、ここ数カ月の間に、有料で良いから講習会をして欲しいとの要望が5件立て続けにあり試しに先週末行って来ました。ただし今回は無料で（交通費など実費は頂く方向で）。。 今後もそこいらの本に書いてある程度のことは実費意外は無料でおこない、本に書いてないことなんかは有料で受けつることにしました。問い合わせはこちら]]></description>
			<content:encoded><![CDATA[<p>日頃より当サイトをご利用頂きありがとうございます。</p>
<p>私の覚書のために始めたサイトではありますが、最近では技術的な質問や講習会に招かれることも多くなり、このサイトの役目が変化してきていることを感じています。</p>
<p>で、ここ数カ月の間に、有料で良いから講習会をして欲しいとの要望が5件立て続けにあり試しに先週末行って来ました。ただし今回は無料で（交通費など実費は頂く方向で）。。</p>
<p>今後もそこいらの本に書いてある程度のことは実費意外は無料でおこない、本に書いてないことなんかは有料で受けつることにしました。問い合わせは<a href="mailto:contact@zono.cc">こちら</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/04/12/%e5%95%8f%e3%81%84%e5%90%88%e3%82%8f%e3%81%9b%e9%a0%82%e3%81%84%e3%81%9f%e3%83%a6%e3%83%bc%e3%82%b6%e6%a7%98%e5%90%84%e4%bd%8d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex + CSS</title>
		<link>http://ojigotts-app.zono.cc/2010/03/25/flex-css/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/25/flex-css/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 08:42:13 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[FlexBuilder3]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=789</guid>
		<description><![CDATA[Flex+CSSで、デザインの自由度ってどの程度ある？ 以前は、覚えるの面倒っていうのと 全部ActionScriptでコーディングすることにこだわっていたので実際使ったことはなかった。 が、自チームで人が増えたこともあり 高価なソフトウェアよりもFlashDevelopでいいんじゃない？的な声も上がり。。　どの程度使えるかを検証。　まだまだ途中ですが。。　　結構つかえるんでないかい？ ということで、まとめ書き Flex + CSSということで、デザイン面はすべてCSSで行うルール main.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:WindowedApplication xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; xmlns=&#34;*&#34; viewSourceURL=&#34;srcview/index.html&#34; width=&#34;800&#34; height=&#34;400&#34;&#62; &#60;mx:Script&#62; &#60;!&#91;CDATA&#91; import &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/03/25/flex-css/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Flex+CSSで、デザインの自由度ってどの程度ある？</p>
<p>以前は、覚えるの面倒っていうのと 全部ActionScriptでコーディングすることにこだわっていたので実際使ったことはなかった。</p>
<p>が、自チームで人が増えたこともあり 高価なソフトウェアよりもFlashDevelopでいいんじゃない？的な声も上がり。。　どの程度使えるかを検証。　まだまだ途中ですが。。　　結構つかえるんでないかい？</p>
<p>ということで、まとめ書き<br />
Flex + CSSということで、デザイン面はすべてCSSで行うルール</p>
<p>main.xml</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000066; font-weight: bold;">?&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>WindowedApplication xmlns<span style="color: #000066; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> xmlns=<span style="color: #990000;">&quot;*&quot;</span> viewSourceURL=<span style="color: #990000;">&quot;srcview/index.html&quot;</span> <span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;800&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;400&quot;</span><span style="color: #000066; font-weight: bold;">&gt;</span>
    <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Script<span style="color: #000066; font-weight: bold;">&gt;</span>
        <span style="color: #000066; font-weight: bold;">&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>
            <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>Alert<span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">&gt;</span>
    <span style="color: #000066; font-weight: bold;">&lt;/</span>mx<span style="color: #000066; font-weight: bold;">:</span>Script<span style="color: #000066; font-weight: bold;">&gt;</span>
    <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Style <span style="color: #004993;">source</span>=<span style="color: #990000;">&quot;main.css&quot;</span> <span style="color: #000066; font-weight: bold;">/&gt;</span>
    <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Panel title=<span style="color: #990000;">&quot;ボタン色々 スタイルシートでモゴモゴ&quot;</span> layout=<span style="color: #990000;">&quot;vertical&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;100&quot;</span><span style="color: #000066; font-weight: bold;">&gt;</span>
        <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>HBox horizontalGap=<span style="color: #990000;">&quot;10&quot;</span> verticalAlign=<span style="color: #990000;">&quot;middle&quot;</span><span style="color: #000066; font-weight: bold;">&gt;</span>
            <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Button id=<span style="color: #990000;">&quot;defaultButton&quot;</span> <span style="color: #004993;">color</span>=<span style="color: #990000;">&quot;0x323232&quot;</span> label=<span style="color: #990000;">&quot;普通のボタン&quot;</span> <span style="color: #004993;">click</span>=<span style="color: #990000;">&quot;{Alert.show('普通のボタン　もごもご');}&quot;</span>  <span style="color: #000066; font-weight: bold;">/&gt;</span>
            <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Button styleName=<span style="color: #990000;">&quot;icon&quot;</span> id=<span style="color: #990000;">&quot;iconButton&quot;</span> label=<span style="color: #990000;">&quot;アイコン付きボタン&quot;</span> <span style="color: #004993;">click</span>=<span style="color: #990000;">&quot;{Alert.show('アイコン付きボタン　もごもご');}&quot;</span> <span style="color: #000066; font-weight: bold;">/&gt;</span>
            <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Button styleName=<span style="color: #990000;">&quot;skinned&quot;</span> id=<span style="color: #990000;">&quot;skinnedButton&quot;</span> label=<span style="color: #990000;">&quot;スキンボタン&quot;</span> <span style="color: #004993;">click</span>=<span style="color: #990000;">&quot;{Alert.show('スキンボタン　もごもご');}&quot;</span>  <span style="color: #000066; font-weight: bold;">/&gt;</span>
            <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Button styleName=<span style="color: #990000;">&quot;customBTN&quot;</span> id=<span style="color: #990000;">&quot;customButton&quot;</span> label=<span style="color: #990000;">&quot;グラデ角丸ボタン&quot;</span> <span style="color: #004993;">click</span>=<span style="color: #990000;">&quot;{Alert.show('グラデ角丸ボタン　もごもご');}&quot;</span><span style="color: #000066; font-weight: bold;">/&gt;</span>
            <span style="color: #000066; font-weight: bold;">&lt;</span>mx<span style="color: #000066; font-weight: bold;">:</span>Button styleName=<span style="color: #990000;">&quot;customBTN&quot;</span> id=<span style="color: #990000;">&quot;customButton2&quot;</span> label=<span style="color: #990000;">&quot;恭平&quot;</span> <span style="color: #004993;">click</span>=<span style="color: #990000;">&quot;{Alert.show('こずえちゃんに　もごもご');}&quot;</span><span style="color: #000066; font-weight: bold;">/&gt;</span>
        <span style="color: #000066; font-weight: bold;">&lt;/</span>mx<span style="color: #000066; font-weight: bold;">:</span>HBox<span style="color: #000066; font-weight: bold;">&gt;</span>
    <span style="color: #000066; font-weight: bold;">&lt;/</span>mx<span style="color: #000066; font-weight: bold;">:</span>Panel<span style="color: #000066; font-weight: bold;">&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;/</span>mx<span style="color: #000066; font-weight: bold;">:</span>WindowedApplication<span style="color: #000066; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>main.css</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* CSS file */</span>
&nbsp;
WindowedApplication <span style="color: #00AA00;">&#123;</span>
	verticalAlign<span style="color: #00AA00;">:</span> <span style="color: #993333;">middle</span><span style="color: #00AA00;">;</span>
	horizontalAlign<span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	layout<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span>
	backgroundColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
Panel <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	borderAlpha<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.15</span><span style="color: #00AA00;">;</span>
    paddingTop<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
    paddingRight<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
    paddingBottom<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
    paddingLeft<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
    horizontalAlign<span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span>
&nbsp;
Button <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
	fontWeight<span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	cornerRadius<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.sample1</span> <span style="color: #00AA00;">&#123;</span>
	fillColors<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;">;</span>
	fillAlphas<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">;</span>
	highlightAlphas<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.1</span><span style="color: #00AA00;">;</span>
	focusAlpha<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">;</span>
	textSelectedColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.<span style="color: #993333;">icon</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #993333;">icon</span><span style="color: #00AA00;">:</span> Embed<span style="color: #00AA00;">&#40;</span>source<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'assets/flex_icon.png'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	downIcon<span style="color: #00AA00;">:</span> Embed<span style="color: #00AA00;">&#40;</span>source<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'assets/flex_icon_dwn.png'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#323232</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #6666ff;">.skinned</span> <span style="color: #00AA00;">&#123;</span>
	upSkin<span style="color: #00AA00;">:</span> Embed<span style="color: #00AA00;">&#40;</span>source<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'assets/btn_up.png'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	overSkin<span style="color: #00AA00;">:</span> Embed<span style="color: #00AA00;">&#40;</span>source<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'assets/btn_over.png'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	downSkin<span style="color: #00AA00;">:</span> Embed<span style="color: #00AA00;">&#40;</span>source<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'assets/btn_down.png'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	focusSkin<span style="color: #00AA00;">:</span> Embed<span style="color: #00AA00;">&#40;</span>source<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'assets/btn_focus.png'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	disabledSkin<span style="color: #00AA00;">:</span> Embed<span style="color: #00AA00;">&#40;</span>source<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'assets/btn_disabled.png'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> 0x323232<span style="color: #00AA00;">;</span>
	textRollOverColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	textSelectedColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	paddingLeft<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">20</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#323232</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.customBTN</span> <span style="color: #00AA00;">&#123;</span>
	fontStyle<span style="color: #00AA00;">:</span><span style="color: #993333;">italic</span><span style="color: #00AA00;">;</span>
	fontWeight<span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	cornerRadius<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">12</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	fillColors<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#55C0FF</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#0050AA</span><span style="color: #00AA00;">;</span>
	fillAlphas<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">1.0</span><span style="color: #00AA00;">;</span>
	highlightAlphas<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">;</span>
	focusAlpha<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">;</span>
	textRollOverColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	textSelectedColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#55C0FF</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>とここまで出来る。。。　すばらしい　Flex</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/25/flex-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlashDevelopでAIRインストーラを作成する方法</title>
		<link>http://ojigotts-app.zono.cc/2010/03/23/flashdevelop%e3%81%a7air%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%a9%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/23/flashdevelop%e3%81%a7air%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%a9%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 08:34:21 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[AIR1.5]]></category>
		<category><![CDATA[FlashDevelop]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=771</guid>
		<description><![CDATA[FlashDevelopのインストール　・・・　省略 FlashDevelopの基本的な使い方　・・・　省略 FlashDevelopでAIRインストーラ書き出し FlashDevelopでAIRアプリを開発する場合に、以下の２種類のプロジェクトのどちらかをとりあえず選びます。 まあ、ここまで FlashCS3,4ベースで開発されてきた人はAIR AS3 Project FlexBuilder3で開発されてきた人はAIR Flex 3 Project ぐらいでざっくり選びます。あくまで開発完了後のAIRファイル書き出しが目的ですから。。 で、開発完了後にプロジェクトのファイルを見てみるとFlexやCS4ではみられない CreateCertificate.bat PackageApplication.bat というファイルがありますので、これを順番にDoubleClickします。 CreateCertificate.batをクリックするとプロンプト立ち上がります。 すると「With password:fd」ってのが２行目あたりに出てくるので テスト用の証明書のパスワードは「fd」って分かります。 別の証明書を作る方法もありますが、ここはこのまま 続いてPackageApplication.batをクリックするとパスワードもとめられるので行儀よく「fd」と入力して キーボードのEnterを これでプロジェクト内に「air」というフォルダが追加されてフォルダ内にAIRインストーラが入っていれば書き出し成功 そんな感じで]]></description>
			<content:encoded><![CDATA[<p>FlashDevelopのインストール　・・・　省略<br />
FlashDevelopの基本的な使い方　・・・　省略<br />
FlashDevelopでAIRインストーラ書き出し</p>
<p>FlashDevelopでAIRアプリを開発する場合に、以下の２種類のプロジェクトのどちらかをとりあえず選びます。<br />
まあ、ここまで</p>
<ul>
<li>FlashCS3,4ベースで開発されてきた人はAIR AS3 Project</li>
<li>FlexBuilder3で開発されてきた人はAIR Flex 3 Project</li>
</ul>
<p>ぐらいでざっくり選びます。あくまで開発完了後のAIRファイル書き出しが目的ですから。。</p>
<p>で、開発完了後にプロジェクトのファイルを見てみるとFlexやCS4ではみられない</p>
<ul>
<li>CreateCertificate.bat</li>
<li>PackageApplication.bat</li>
</ul>
<p>というファイルがありますので、これを順番にDoubleClickします。</p>
<p>CreateCertificate.batをクリックするとプロンプト立ち上がります。<br />
すると「With password:fd」ってのが２行目あたりに出てくるので テスト用の証明書のパスワードは「fd」って分かります。<br />
別の証明書を作る方法もありますが、ここはこのまま</p>
<p>続いてPackageApplication.batをクリックするとパスワードもとめられるので行儀よく「fd」と入力して キーボードのEnterを</p>
<p>これでプロジェクト内に「air」というフォルダが追加されてフォルダ内にAIRインストーラが入っていれば書き出し成功</p>
<p>そんな感じで</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/23/flashdevelop%e3%81%a7air%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%a9%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS判定</title>
		<link>http://ojigotts-app.zono.cc/2010/03/17/os%e5%88%a4%e5%ae%9a/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/17/os%e5%88%a4%e5%ae%9a/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 08:11:41 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>
		<category><![CDATA[Capabilities.os]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=747</guid>
		<description><![CDATA[OSによって処理を変えたい事ってたまにあると思います。 私は、AIRでよくある。。 で、覚書 1 2 3 4 5 6 7 import flash.system.Capabilities; &#160; if &#40;Capabilities.os.substring&#40;0,3&#41;==&#34;Mac&#34;&#41;&#123; //ここにMacOSだった場合の処理 &#125;else if&#40;Capabilities.os.substring&#40;0,3&#41;==&#34;Win&#34;&#41;&#123; //ここにWinだった場合の処理 &#125; そんな感じで]]></description>
			<content:encoded><![CDATA[<p>OSによって処理を変えたい事ってたまにあると思います。<br />
私は、AIRでよくある。。</p>
<p>で、覚書</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.system</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">os</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">substring</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span>==<span style="color: #990000;">&quot;Mac&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
	<span style="color: #009900; font-style: italic;">//ここにMacOSだった場合の処理</span>
<span style="color: #000000;">&#125;</span><span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">os</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">substring</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span>==<span style="color: #990000;">&quot;Win&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
	<span style="color: #009900; font-style: italic;">//ここにWinだった場合の処理</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>そんな感じで</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/17/os%e5%88%a4%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ドキュメントプロパティ設定</title>
		<link>http://ojigotts-app.zono.cc/2010/03/12/%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e8%a8%ad%e5%ae%9a/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/12/%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e8%a8%ad%e5%ae%9a/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 01:05:30 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[ドキュメントプロパティ]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=723</guid>
		<description><![CDATA[FlashCS3, CS4で開発していた人にとってStage周りの表示を定義する時は プロパティの[サイズ]にある[ドキュメントプロパティ]でステージの大きさ や色を決めていたはず。。これ、以下のようにドキュメントプロパティ設定ができます。 ［SWF(width=&#8221;160&#8243;,height=&#8221;300&#8243;,frameRate=&#8221;30&#8243;,backgroundColor=&#8221;#FFFFFF&#8221;)］]]></description>
			<content:encoded><![CDATA[<p>FlashCS3, CS4で開発していた人にとってStage周りの表示を定義する時は</p>
<p>プロパティの[サイズ]にある[ドキュメントプロパティ]でステージの大きさ</p>
<p>や色を決めていたはず。。これ、以下のようにドキュメントプロパティ設定ができます。</p>
<p>［SWF(width=&#8221;160&#8243;,height=&#8221;300&#8243;,frameRate=&#8221;30&#8243;,backgroundColor=&#8221;#FFFFFF&#8221;)］</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/12/%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e8%a8%ad%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DataGridの表示設定</title>
		<link>http://ojigotts-app.zono.cc/2010/03/09/datagrid%e3%81%ae%e8%a1%a8%e7%a4%ba%e8%a8%ad%e5%ae%9a/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/09/datagrid%e3%81%ae%e8%a1%a8%e7%a4%ba%e8%a8%ad%e5%ae%9a/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 03:47:01 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[allowMultipleSelection]]></category>
		<category><![CDATA[DataGrid]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=622</guid>
		<description><![CDATA[DataGridコンポーネントを初めて使ったとき、dataProviderにArrayCollection突っ込みゃいいのね。。とおもって Publishすると、FlashCS4の場合はなんだかカラムの並びが変だったり。。　で、プロパティ調べると色々便利なプロパティ あったのでした。 //データグリッドのサイズ（他のコンポーネントにもありますよ） dg.setSize&#40;400, 300&#41;; &#160; //ラベルの並び順指定 dg.columns = &#91;&#34;Name&#34;, &#34;Bats&#34;, &#34;Throws&#34;, &#34;Year&#34;, &#34;Home&#34;&#93;; &#160; //各カラムの幅指定(これって、autoSizeってないのかな？知ってたら誰かおしえてw) dg.columns&#91;0&#93;.width = 100; dg.columns&#91;1&#93;.width = 50; dg.columns&#91;2&#93;.width = 50; dg.columns&#91;3&#93;.width = 40; dg.columns&#91;4&#93;.width = 100; &#160; //DataGridの複数選択は「allowMultipleSelection」を「true」にする //Shift[win][mac] dg.allowMultipleSelection = true; &#160; //連続していない複数選択 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/03/09/datagrid%e3%81%ae%e8%a1%a8%e7%a4%ba%e8%a8%ad%e5%ae%9a/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>DataGridコンポーネントを初めて使ったとき、dataProviderにArrayCollection突っ込みゃいいのね。。とおもって<br />
Publishすると、FlashCS4の場合はなんだかカラムの並びが変だったり。。　で、プロパティ調べると色々便利なプロパティ<br />
あったのでした。</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">//データグリッドのサイズ（他のコンポーネントにもありますよ）</span>
dg<span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">400</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">300</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//ラベルの並び順指定</span>
dg<span style="color: #000066; font-weight: bold;">.</span>columns = <span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;Name&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Bats&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Throws&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Year&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Home&quot;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//各カラムの幅指定(これって、autoSizeってないのかな？知ってたら誰かおしえてw)</span>
dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">;</span>
dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">;</span>
dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">40</span><span style="color: #000066; font-weight: bold;">;</span>
dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//DataGridの複数選択は「allowMultipleSelection」を「true」にする</span>
<span style="color: #009900; font-style: italic;">//Shift[win][mac]</span>
dg<span style="color: #000066; font-weight: bold;">.</span>allowMultipleSelection = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//連続していない複数選択</span>
ctrl<span style="color: #000000;">&#91;</span>win<span style="color: #000000;">&#93;</span> command<span style="color: #000066; font-weight: bold;">+</span>A<span style="color: #000000;">&#91;</span>mac<span style="color: #000000;">&#93;</span>
<span style="color: #009900; font-style: italic;">//ダブルクリックを有効</span>
dg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">doubleClickEnabled</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/09/datagrid%e3%81%ae%e8%a1%a8%e7%a4%ba%e8%a8%ad%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FileFilter</title>
		<link>http://ojigotts-app.zono.cc/2010/03/08/filefilter/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/08/filefilter/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 09:25:16 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[flash.net.*]]></category>
		<category><![CDATA[FileFilter]]></category>
		<category><![CDATA[FileReference]]></category>
		<category><![CDATA[FileReferenceList]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=618</guid>
		<description><![CDATA[browseメソッドの引数にFileFilterという配列をわたすと、指定した拡張子以外のファイルの選択が不可に。 以下は、[png,jpg,gif,jpeg]以外は選択できないFileFilter var _filter:FileFilter = new FileFilter&#40;&#34;画像ファイル(*.png)&#34;, &#34;*.jpg;*.gif;*.jpeg;*.png&#34;&#41;;]]></description>
			<content:encoded><![CDATA[<p>browseメソッドの引数にFileFilterという配列をわたすと、指定した拡張子以外のファイルの選択が不可に。<br />
以下は、[png,jpg,gif,jpeg]以外は選択できないFileFilter</p>
<p><span id="more-618"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> _filter<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">FileFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">FileFilter</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;画像ファイル(*.png)&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;*.jpg;*.gif;*.jpeg;*.png&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/08/filefilter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AdobeAIRのファイル操作</title>
		<link>http://ojigotts-app.zono.cc/2010/03/08/598/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/08/598/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 02:51:22 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>
		<category><![CDATA[AIR1.5]]></category>
		<category><![CDATA[File]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=598</guid>
		<description><![CDATA[AdobeAIR1.5では、制限はありますが任意のディレクトリへのデータ保存、 任意のディレクトリからのデータ読み込みが可能です。（AdobeAIR2.0では AIR1.5で制限されていた部分のアクセスが可能となります。） 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 File.applicationStorageDirectory //データ保存用ディレクトリ File.applicationDirectory //インストールが行われたディレクトリ File.desktopDirectory //デスクトップのディレクトリ File.documentsDirectory //マイドキュメントディレクトリ File.userDirectory //ユーザーごとのホームディレクトリ &#160; &#160; //Fileオブジェクトの以下のメソッドが使えます。 &#91;対象ファイル&#93;.moveTo&#40;&#41; //移動 &#91;対象ファイル&#93;.copyTo&#40;&#41; //コピー &#91;対象ファイル&#93;.deleteDirectory&#40;&#41; //ディレクトリ削除 &#91;対象ファイル&#93;.deleteFile&#40;&#41; //ファイル削除 &#91;対象ファイル&#93;.moveToTrash&#40;&#41; &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/03/08/598/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>AdobeAIR1.5では、制限はありますが任意のディレクトリへのデータ保存、<br />
任意のディレクトリからのデータ読み込みが可能です。（AdobeAIR2.0では<br />
AIR1.5で制限されていた部分のアクセスが可能となります。）</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"> File<span style="color: #000066; font-weight: bold;">.</span>applicationStorageDirectory 	<span style="color: #009900; font-style: italic;">//データ保存用ディレクトリ</span>
 File<span style="color: #000066; font-weight: bold;">.</span>applicationDirectory  	 	<span style="color: #009900; font-style: italic;">//インストールが行われたディレクトリ</span>
 File<span style="color: #000066; font-weight: bold;">.</span>desktopDirectory 		 	<span style="color: #009900; font-style: italic;">//デスクトップのディレクトリ</span>
 File<span style="color: #000066; font-weight: bold;">.</span>documentsDirectory 	 	<span style="color: #009900; font-style: italic;">//マイドキュメントディレクトリ</span>
 File<span style="color: #000066; font-weight: bold;">.</span>userDirectory 	 	 	<span style="color: #009900; font-style: italic;">//ユーザーごとのホームディレクトリ</span>
&nbsp;
&nbsp;
<span style="color: #009900; font-style: italic;">//Fileオブジェクトの以下のメソッドが使えます。</span>
 <span style="color: #000000;">&#91;</span>対象ファイル<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">moveTo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> 	 	<span style="color: #009900; font-style: italic;">//移動</span>
 <span style="color: #000000;">&#91;</span>対象ファイル<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>copyTo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> 	 	<span style="color: #009900; font-style: italic;">//コピー</span>
 <span style="color: #000000;">&#91;</span>対象ファイル<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>deleteDirectory<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> 	<span style="color: #009900; font-style: italic;">//ディレクトリ削除</span>
 <span style="color: #000000;">&#91;</span>対象ファイル<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>deleteFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   		<span style="color: #009900; font-style: italic;">//ファイル削除</span>
 <span style="color: #000000;">&#91;</span>対象ファイル<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>moveToTrash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>          　<span style="color: #009900; font-style: italic;">//ごみ箱に移動</span>
 <span style="color: #000000;">&#91;</span>対象ファイル<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>exists                  <span style="color: #009900; font-style: italic;">//ファイルが存在するか確認</span>
 <span style="color: #000000;">&#91;</span>対象ファイル<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>getDirectoryListing<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #009900; font-style: italic;">//ファイル一覧の取得</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/08/598/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>アプリケーションの終了</title>
		<link>http://ojigotts-app.zono.cc/2010/03/08/%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e7%b5%82%e4%ba%86/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/08/%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e7%b5%82%e4%ba%86/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 01:43:38 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[flash.desktop.*]]></category>
		<category><![CDATA[AIR1.5]]></category>
		<category><![CDATA[exit]]></category>
		<category><![CDATA[NativeApplication]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=596</guid>
		<description><![CDATA[NativeApplication.nativeApplication.exit();]]></description>
			<content:encoded><![CDATA[<p>NativeApplication.nativeApplication.exit();</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/08/%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e7%b5%82%e4%ba%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ドキュメントディレクトリから相対パスを指定して新しいファイルパスを取得する</title>
		<link>http://ojigotts-app.zono.cc/2010/03/05/%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%81%8b%e3%82%89%e7%9b%b8%e5%af%be%e3%83%91%e3%82%b9%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%97/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/05/%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%81%8b%e3%82%89%e7%9b%b8%e5%af%be%e3%83%91%e3%82%b9%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%97/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 10:19:03 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[createDirectory()]]></category>
		<category><![CDATA[File.documentsDirectory]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=585</guid>
		<description><![CDATA[ファイルパスの取得のドキュメントって、サクッとできるから書き留めないんだけど なんかすぐ忘れる気がするものの一つ 例は、新しいファイルパスを取得した後、任意のディレクトリを指定してフォルダの追加 // ドキュメントディレクトリから相対パスを指定して新しいファイルパスを取得する var save_dir:File = File.documentsDirectory.resolvePath&#40;&#34;HogeHoge&#34;&#41;; // フォルダを作成する save_dir.createDirectory&#40;&#41;;]]></description>
			<content:encoded><![CDATA[<p>ファイルパスの取得のドキュメントって、サクッとできるから書き留めないんだけど<br />
なんかすぐ忘れる気がするものの一つ</p>
<p>例は、新しいファイルパスを取得した後、任意のディレクトリを指定してフォルダの追加</p>
<p><span id="more-585"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// ドキュメントディレクトリから相対パスを指定して新しいファイルパスを取得する</span>
<span style="color: #6699cc; font-weight: bold;">var</span> save_dir<span style="color: #000066; font-weight: bold;">:</span>File = File<span style="color: #000066; font-weight: bold;">.</span>documentsDirectory<span style="color: #000066; font-weight: bold;">.</span>resolvePath<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;HogeHoge&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #009900; font-style: italic;">// フォルダを作成する</span>
save_dir<span style="color: #000066; font-weight: bold;">.</span>createDirectory<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/05/%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%81%8b%e3%82%89%e7%9b%b8%e5%af%be%e3%83%91%e3%82%b9%e3%82%92%e6%8c%87%e5%ae%9a%e3%81%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>画像オブジェクトを固定比率で拡大縮小</title>
		<link>http://ojigotts-app.zono.cc/2010/03/05/%e7%94%bb%e5%83%8f%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e5%9b%ba%e5%ae%9a%e6%af%94%e7%8e%87%e3%81%a7%e6%8b%a1%e5%a4%a7%e7%b8%ae%e5%b0%8f/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/05/%e7%94%bb%e5%83%8f%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e5%9b%ba%e5%ae%9a%e6%af%94%e7%8e%87%e3%81%a7%e6%8b%a1%e5%a4%a7%e7%b8%ae%e5%b0%8f/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 08:09:27 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>
		<category><![CDATA[Matrix]]></category>
		<category><![CDATA[ratio]]></category>
		<category><![CDATA[scale]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=582</guid>
		<description><![CDATA[画像オブジェクトを固定比率で拡大縮小する。 例えばデジカメで撮影した画像が縦、横バラバラでWebで表示する場合に 描画した矩形の中にバランス良く置く場合に、長編を任意のサイズにあわせて センター表示させるなど、色々やらなきゃいけない事が多い そこで、とりあえず縦横どちらが長いかを求めてみる 下記は、縦横の長さを比較して小さい方に Scaleをあわせるスクリプト var w = 100 / _ldr.width; 　var h = 100 / _ldr.height; 　var ratio = &#40;w &#38;lt; h&#41;? w:h; 　var _matrix=new Matrix&#40;&#41;; 　_matrix.scale&#40;ratio, ratio&#41;;]]></description>
			<content:encoded><![CDATA[<p>画像オブジェクトを固定比率で拡大縮小する。</p>
<p>例えばデジカメで撮影した画像が縦、横バラバラでWebで表示する場合に<br />
描画した矩形の中にバランス良く置く場合に、長編を任意のサイズにあわせて<br />
センター表示させるなど、色々やらなきゃいけない事が多い</p>
<p>そこで、とりあえず縦横どちらが長いかを求めてみる<br />
下記は、縦横の長さを比較して小さい方に Scaleをあわせるスクリプト</p>
<p><span id="more-582"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"> <span style="color: #6699cc; font-weight: bold;">var</span> w = <span style="color: #000000; font-weight:bold;">100</span> <span style="color: #000066; font-weight: bold;">/</span> _ldr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">;</span>
　<span style="color: #6699cc; font-weight: bold;">var</span> h = <span style="color: #000000; font-weight:bold;">100</span> <span style="color: #000066; font-weight: bold;">/</span> _ldr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">;</span>
　<span style="color: #6699cc; font-weight: bold;">var</span> ratio = <span style="color: #000000;">&#40;</span>w <span style="color: #000066; font-weight: bold;">&amp;</span>lt<span style="color: #000066; font-weight: bold;">;</span> h<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">?</span> w<span style="color: #000066; font-weight: bold;">:</span>h<span style="color: #000066; font-weight: bold;">;</span>
　<span style="color: #6699cc; font-weight: bold;">var</span> _matrix=<span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Matrix</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
　_matrix<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scale</span><span style="color: #000000;">&#40;</span>ratio<span style="color: #000066; font-weight: bold;">,</span> ratio<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/05/%e7%94%bb%e5%83%8f%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e5%9b%ba%e5%ae%9a%e6%af%94%e7%8e%87%e3%81%a7%e6%8b%a1%e5%a4%a7%e7%b8%ae%e5%b0%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>外部画像のロード</title>
		<link>http://ojigotts-app.zono.cc/2010/03/02/%e5%a4%96%e9%83%a8%e7%94%bb%e5%83%8f%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%89/</link>
		<comments>http://ojigotts-app.zono.cc/2010/03/02/%e5%a4%96%e9%83%a8%e7%94%bb%e5%83%8f%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%89/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 07:14:41 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[flash.display.*]]></category>
		<category><![CDATA[flash.events.*]]></category>
		<category><![CDATA[Loader]]></category>
		<category><![CDATA[loaderInfo]]></category>
		<category><![CDATA[URLRequest]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=563</guid>
		<description><![CDATA[外部画像のロードを行います。 以下の例は、画像 &#8220;hogehoge.png&#8221;を読み込むスクリプトです 1．URLRequestをnew 2．Loaderをnew 3.LoaderInfoをnewして、ロードの監視 -&#62; LoadInfoでは、画像のプロパティは完了後にすべてとりだせます 4.Loadが完了したら、ステージに追加 以上 var request:URLRequest = new URLRequest&#40;&#34;hogehoge.png&#34;&#41;; loader = new Loader&#40;&#41;; var info:LoaderInfo = loader.contentLoaderInfo; info.addEventListener&#40;Event.COMPLETE, completeHandler&#41;; info.addEventListener&#40;IOErrorEvent.IO_ERROR, IOErrorEventHandler&#41;; loader.load&#40;request&#41;; &#160; function completeHandler&#40;event:Event&#41;:void&#123; this.addChild&#40;loader&#41;; &#125; &#160; function IOErrorEventHandler&#40;event:Event&#41;:void&#123; trace&#40;event&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<p>外部画像のロードを行います。<br />
以下の例は、画像 &#8220;hogehoge.png&#8221;を読み込むスクリプトです</p>
<p>1．URLRequestをnew<br />
2．Loaderをnew<br />
3.LoaderInfoをnewして、ロードの監視 -&gt; LoadInfoでは、画像のプロパティは完了後にすべてとりだせます<br />
4.Loadが完了したら、ステージに追加</p>
<p>以上</p>
<p><span id="more-563"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> request<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">URLRequest</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;hogehoge.png&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">loader</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Loader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">info</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">LoaderInfo</span> = <span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">contentLoaderInfo</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">info</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> completeHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">info</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">IOErrorEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">IO_ERROR</span><span style="color: #000066; font-weight: bold;">,</span> IOErrorEventHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span>request<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> completeHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">loader</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> IOErrorEventHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
	<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>event<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/03/02/%e5%a4%96%e9%83%a8%e7%94%bb%e5%83%8f%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Namespace</title>
		<link>http://ojigotts-app.zono.cc/2010/02/25/namespace/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/25/namespace/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 07:19:31 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[Namespace]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=554</guid>
		<description><![CDATA[２年以上前の話ではあるが、ActionScript3.0でXMLパースするときはじめに？てなったのが　namespace なので、覚え書き とりあえず、以下サンプルのXML var xml:XML= &#60; rdf:RDF xmlns = &#34;http://purl.org/rss/1.0/&#34; xmlns:rdf = &#34;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#34; xmlns:dc = &#34;http://purl.org/dc/elements/1.1/&#34; &#62; &#160; http://www.shin-go.net/motionlab/#1 2010-09-08T00:00:00+12:00 &#160; http://www.shin-go.net/motionlab/#2 2010-09-08T00:00:00+12:00 &#160; ; Namespace定義がある場合は 例：１ trace&#40;xml.item&#91;0&#93;.title&#41;; &#160; //出力「TypeError: Error #1010: 条件は未定義であり、プロパティがありません。」 のようになる。で、こんな場合は [Namespace]::[NodeName]で取り出せる。 例：２ var ns:Namespace = new &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/25/namespace/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>２年以上前の話ではあるが、ActionScript3.0でXMLパースするときはじめに？てなったのが　namespace</p>
<p>なので、覚え書き</p>
<p><span id="more-554"></span></p>
<p>とりあえず、以下サンプルのXML</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">var xml:XML=
<span style="color: #009900;">&lt; rdf:RDF</span>
<span style="color: #009900;">xmlns = <span style="color: #ff0000;">&quot;http://purl.org/rss/1.0/&quot;</span></span>
<span style="color: #009900;">xmlns:rdf = <span style="color: #ff0000;">&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;</span></span>
<span style="color: #009900;">xmlns:dc = <span style="color: #ff0000;">&quot;http://purl.org/dc/elements/1.1/&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
http://www.shin-go.net/motionlab/#1
		2010-09-08T00:00:00+12:00
&nbsp;
http://www.shin-go.net/motionlab/#2
		2010-09-08T00:00:00+12:00
&nbsp;
;</pre></div></div>

<p>Namespace定義がある場合は<br />
例：１</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>xml<span style="color: #000066; font-weight: bold;">.</span>item<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>title<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//出力「TypeError: Error #1010: 条件は未定義であり、プロパティがありません。」</span></pre></div></div>

<p>のようになる。で、こんな場合は</p>
<p>[Namespace]::[NodeName]で取り出せる。</p>
<p>例：２</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> ns<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Namespace</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Namespace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://purl.org/rss/1.0/&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>xml<span style="color: #000066; font-weight: bold;">.</span>ns<span style="color: #000066; font-weight: bold;">::</span>item<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>ns<span style="color: #000066; font-weight: bold;">::</span>title<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #009900; font-style: italic;">//出力「記事１」</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/25/namespace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StageScaleMode</title>
		<link>http://ojigotts-app.zono.cc/2010/02/23/stagescalemode/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/23/stagescalemode/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:23:22 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[StageScaleMode]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=511</guid>
		<description><![CDATA[ブラウザでFlashを表示する場合、表示画面にFlashサイズをあわせたい時やFlash自体は拡大縮小させたくない、はたまた固定サイズで常に縦横センタリング表示したい場合などがありますが、設定できるプロパティは以下 StageScaleMode.[定数] [ EXACT_FIT ] 元の比率を維持せずに、指定領域内でFlash全体を表示 [ NO_BORDER ]　　元の比率を維持して、指定領域内でFlash全体を表示 [ NO_SCALE ]　　　　Flashのサイズを固定して表示 [ SHOW_ALL ] 元の比率を維持して指定領域内でFlash全体を表示 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/23/stagescalemode/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>ブラウザでFlashを表示する場合、表示画面にFlashサイズをあわせたい時やFlash自体は拡大縮小させたくない、はたまた固定サイズで常に縦横センタリング表示したい場合などがありますが、設定できるプロパティは以下</p>
<p>StageScaleMode.[定数]<br />
[ EXACT_FIT ]    元の比率を維持せずに、指定領域内でFlash全体を表示<br />
[ NO_BORDER ]　　元の比率を維持して、指定領域内でFlash全体を表示<br />
[ NO_SCALE ]　　　　Flashのサイズを固定して表示<br />
[ SHOW_ALL ]   元の比率を維持して指定領域内でFlash全体を表示</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> 
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TextField</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> _textF<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleMode</span>=<span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NO_SCALE</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span>=<span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TOP_LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">RESIZE</span><span style="color: #000066; font-weight: bold;">,</span>resizeHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_textF<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_textF<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;w:&quot;</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #990000;">&quot;/h:&quot;</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageHeight</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> resizeHandler<span style="color: #000000;">&#40;</span>evt<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			_textF<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;w:&quot;</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #990000;">&quot;/h:&quot;</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageHeight</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/23/stagescalemode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>addEventListenerを無名関数で登録したときに破棄する方法</title>
		<link>http://ojigotts-app.zono.cc/2010/02/22/addeventlistener%e3%82%92%e7%84%a1%e5%90%8d%e9%96%a2%e6%95%b0%e3%81%a7%e7%99%bb%e9%8c%b2%e3%81%97%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ab%e7%a0%b4%e6%a3%84%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/22/addeventlistener%e3%82%92%e7%84%a1%e5%90%8d%e9%96%a2%e6%95%b0%e3%81%a7%e7%99%bb%e9%8c%b2%e3%81%97%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ab%e7%a0%b4%e6%a3%84%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 11:42:57 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[flash.events.*]]></category>
		<category><![CDATA[addEventListener]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=494</guid>
		<description><![CDATA[arguments.callee をパラメータにして破棄する テストとかで、条件式と組み合わせて使うとコード少なくて済む 1 2 addEventListener&#40;Event.ENTER_FRAME ,function&#40;&#41;&#123; removeEventListener&#40;Event.ENTER_FRAME,　arguments.callee&#41;;&#125;&#41;; しかし、これあんまり知られてないのでは無かろうか？　というか、去年のはじめまで私は知らんかった。数ある教則本には載ってなかったとおもう。 ActionScript3.0辞典をみると、まだ使った事のない関数が山ほどあるが きっと知っていたら便利な関数とか沢山あるんだろうな〜　一日一個ずつ試せばいつかは制覇できると思うけど、覚えた頃にはまたバージョンがあがって。。。。　 まあ、知る事で無駄な事は無いでしょうが]]></description>
			<content:encoded><![CDATA[<p>arguments.callee をパラメータにして破棄する<br />
テストとかで、条件式と組み合わせて使うとコード少なくて済む</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ENTER_FRAME</span> <span style="color: #000066; font-weight: bold;">,</span><span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ENTER_FRAME</span><span style="color: #000066; font-weight: bold;">,</span>　<span style="color: #004993;">arguments</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">callee</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>しかし、これあんまり知られてないのでは無かろうか？　というか、去年のはじめまで私は知らんかった。数ある教則本には載ってなかったとおもう。<br />
ActionScript3.0辞典をみると、まだ使った事のない関数が山ほどあるが きっと知っていたら便利な関数とか沢山あるんだろうな〜　一日一個ずつ試せばいつかは制覇できると思うけど、覚えた頃にはまたバージョンがあがって。。。。　</p>
<p>まあ、知る事で無駄な事は無いでしょうが</p>
]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/22/addeventlistener%e3%82%92%e7%84%a1%e5%90%8d%e9%96%a2%e6%95%b0%e3%81%a7%e7%99%bb%e9%8c%b2%e3%81%97%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ab%e7%a0%b4%e6%a3%84%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URLLoaderで取得したデータをutf-8にデコードする</title>
		<link>http://ojigotts-app.zono.cc/2010/02/22/urlloader%e3%81%a7%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92utf-8%e3%81%ab%e3%83%87%e3%82%b3%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/22/urlloader%e3%81%a7%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92utf-8%e3%81%ab%e3%83%87%e3%82%b3%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 11:40:56 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[flash.net.*]]></category>
		<category><![CDATA[ByteArray]]></category>
		<category><![CDATA[readMultiByte]]></category>
		<category><![CDATA[URLStream]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=492</guid>
		<description><![CDATA[フィードがshift-jis, euc-jpの場合文字化けするとかはサーバ側で処理してるから、私は関係ないが AIR開発で文字コードの処理だけサーバサイドに任せるなんてありえないのでちょっと調べた 以下覚え書き readMultiByteで文字コードを指定→　Stringオブジェクトに変換 で対応できる //shift-jis → utf-8 var byteArray:ByteArray = event.target.data as　ByteArray; var html:String = byteArray.readMultiByte&#40;byteArray.length, &#34;shift-jis&#34;&#41;; &#160; //euc-jp → utf-8 var byteArray:ByteArray = event.target.data as　ByteArray; var html:String = byteArray.readMultiByte&#40;byteArray.length, &#34;euc-jp&#34;&#41;; URLStreamクラスのreadMultiByteをつかう方法もありますが。。 以下、試して成功したのでどうぞ（sample.xmlは適当なもの描いて、SJISで保存しておいてくださいね） //URLLoader作成 var urlLoader:URLLoader = new &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/22/urlloader%e3%81%a7%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92utf-8%e3%81%ab%e3%83%87%e3%82%b3%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>フィードがshift-jis, euc-jpの場合文字化けするとかはサーバ側で処理してるから、私は関係ないが AIR開発で文字コードの処理だけサーバサイドに任せるなんてありえないのでちょっと調べた</p>
<p>以下覚え書き</p>
<p>readMultiByteで文字コードを指定→　Stringオブジェクトに変換<br />
で対応できる</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">//shift-jis → utf-8</span>
<span style="color: #6699cc; font-weight: bold;">var</span> byteArray<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">ByteArray</span> = event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span> <span style="color: #0033ff; font-weight: bold;">as</span>　<span style="color: #004993;">ByteArray</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> html<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = byteArray<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">readMultiByte</span><span style="color: #000000;">&#40;</span>byteArray<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;shift-jis&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//euc-jp → utf-8</span>
<span style="color: #6699cc; font-weight: bold;">var</span> byteArray<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">ByteArray</span> = event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span> <span style="color: #0033ff; font-weight: bold;">as</span>　<span style="color: #004993;">ByteArray</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> html<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = byteArray<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">readMultiByte</span><span style="color: #000000;">&#40;</span>byteArray<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;euc-jp&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>URLStreamクラスのreadMultiByteをつかう方法もありますが。。</p>
<p>以下、試して成功したのでどうぞ（sample.xmlは適当なもの描いて、SJISで保存しておいてくださいね）<span id="more-492"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">//URLLoader作成</span>
<span style="color: #6699cc; font-weight: bold;">var</span> urlLoader<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">URLLoader</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLLoader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
urlLoader<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">dataFormat</span> = <span style="color: #004993;">URLLoaderDataFormat</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">BINARY</span><span style="color: #000066; font-weight: bold;">;</span>
urlLoader<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> onLoaded<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #009900; font-style: italic;">//URL</span>
<span style="color: #6699cc; font-weight: bold;">var</span> urlReq<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">URLRequest</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;./sample.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//Shift-JISならばtrue</span>
<span style="color: #009900; font-style: italic;">//読み込み開始</span>
urlLoader<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span>urlReq<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//チーム名配列</span>
teamNameArr = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
sectionNameArr = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//読み込んだテキストを表示する</span>
<span style="color: #339966; font-weight: bold;">function</span> onLoaded<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
 <span style="color: #6699cc; font-weight: bold;">var</span> byteArray<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">ByteArray</span> = event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">ByteArray</span><span style="color: #000066; font-weight: bold;">;</span>
 html = byteArray<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">readMultiByte</span><span style="color: #000000;">&#40;</span>byteArray<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;shift-jis&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/22/urlloader%e3%81%a7%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92utf-8%e3%81%ab%e3%83%87%e3%82%b3%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ComboBox</title>
		<link>http://ojigotts-app.zono.cc/2010/02/19/combobox-2/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/19/combobox-2/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 00:55:05 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[flash.events.*]]></category>
		<category><![CDATA[flash.net.*]]></category>
		<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[DataProvider]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=423</guid>
		<description><![CDATA[InputTextに文字列を入力して、submitするとComboBoxにデータが表示される データを２つ以上登録すると、選択時に何が選択されたかがひょうじされます。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/19/combobox-2/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>InputTextに文字列を入力して、submitするとComboBoxにデータが表示される<br />
データを２つ以上登録すると、選択時に何が選択されたかがひょうじされます。</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="100" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/ComboBox1.swf" /><embed type="application/x-shockwave-flash" width="400" height="100" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/ComboBox1.swf"></embed></object></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000066; font-weight: bold;">.</span>DataProvider<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ComboBoxClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> thisTextInput<span style="color: #000066; font-weight: bold;">:</span>TextInput<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> submitBTN<span style="color: #000066; font-weight: bold;">:</span>Button<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _ComboBox<span style="color: #000066; font-weight: bold;">:</span>ComboBox<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> marginArr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> resultTXT<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> ComboBoxClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
			thisTextInput = <span style="color: #0033ff; font-weight: bold;">new</span> TextInput<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = marginArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = marginArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>thisTextInput<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			submitBTN = <span style="color: #0033ff; font-weight: bold;">new</span> Button<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			submitBTN<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">+</span> thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> <span style="color: #000066; font-weight: bold;">+</span> marginArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			submitBTN<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = marginArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			submitBTN<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> kclick<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>submitBTN<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			_ComboBox = <span style="color: #0033ff; font-weight: bold;">new</span> ComboBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_ComboBox<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			_ComboBox<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = marginArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			_ComboBox<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> <span style="color: #000066; font-weight: bold;">+</span> thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> <span style="color: #000066; font-weight: bold;">+</span> marginArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			_ComboBox<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CHANGE</span><span style="color: #000066; font-weight: bold;">,</span> showSelectedItem<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
&nbsp;
			resultTXT = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">+</span> thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> <span style="color: #000066; font-weight: bold;">+</span> marginArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = submitBTN<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> <span style="color: #000066; font-weight: bold;">+</span> submitBTN<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> <span style="color: #000066; font-weight: bold;">+</span>  marginArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>resultTXT<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> showSelectedItem<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;選択されたラベル：&quot;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #004993;">String</span><span style="color: #000000;">&#40;</span>_ComboBox<span style="color: #000066; font-weight: bold;">.</span>selectedLabel<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>_ComboBox<span style="color: #000066; font-weight: bold;">.</span>selectedLabel<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> kclick<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">!</span>= <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				_ComboBox<span style="color: #000066; font-weight: bold;">.</span>addItem<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>label<span style="color: #000066; font-weight: bold;">:</span>thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">data</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;選択肢：&quot;</span> <span style="color: #000066; font-weight: bold;">+</span> thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot;を追加しました&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				thisTextInput<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/19/combobox-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>draw</title>
		<link>http://ojigotts-app.zono.cc/2010/02/18/draw/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/18/draw/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 07:43:06 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[flash.display.*]]></category>
		<category><![CDATA[drawCircle]]></category>
		<category><![CDATA[drawEllipse]]></category>
		<category><![CDATA[drawRect]]></category>
		<category><![CDATA[drawRoundRect]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=412</guid>
		<description><![CDATA[graphics.*で描ける矩形の描画テスト まあ、見てもらえればわかるとおもいます。 ここでは、Shapeオブジェクトに描画して Stageに追加していますが Spriteや、その他DisplayObjectにも描画できます。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 package&#123; import flash.display.*; import flash.events.*; &#91;SWF&#40;width=&#34;400&#34;, height=&#34;250&#34;&#41;&#93; public class ContextMenuClass extends Sprite&#123; public &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/18/draw/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>graphics.*で描ける矩形の描画テスト<br />
まあ、見てもらえればわかるとおもいます。</p>
<p>ここでは、Shapeオブジェクトに描画して Stageに追加していますが<br />
Spriteや、その他DisplayObjectにも描画できます。</p>
<p><object style="width: 400px; height: 250px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="250" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/ContextMenu.swf" /><embed style="width: 400px; height: 250px;" type="application/x-shockwave-flash" width="400" height="250" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/ContextMenu.swf"></embed></object></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #000000;">&#91;</span>SWF<span style="color: #000000;">&#40;</span><span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;400&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;250&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ContextMenuClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> ContextMenuClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
			makeList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> makeList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> shape<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Shape</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Shape</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>shape<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">4</span><span style="color: #000066; font-weight: bold;">,</span> 0x999999<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0xCCCCCC<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawCircle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawEllipse</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">110</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">170</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">110</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">110</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRoundRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">120</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">110</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">120</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/18/draw/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NativeWindow</title>
		<link>http://ojigotts-app.zono.cc/2010/02/18/nativewindow/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/18/nativewindow/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 04:30:29 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[flash.display.*]]></category>
		<category><![CDATA[AIR1.5]]></category>
		<category><![CDATA[NativeWindow]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=405</guid>
		<description><![CDATA[コード的にかなり長くなったが、NativeWindowを３つ追加してそれぞれ タイトルやその他プロパティをつけてみた NativeWindowを透過して、ドラッグする場合にはドラッグ用のインスタンスを追加して親ウィンドウをドラッグできるようにするが、一つ目のNativeWindowをドラッグした後に他のNativeWindowをドラッグしようとするとエラーが起きてしまう。　う〜ん　何故だろう？　原因わかったらコメントで追加します 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/18/nativewindow/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>コード的にかなり長くなったが、NativeWindowを３つ追加してそれぞれ<br />
タイトルやその他プロパティをつけてみた</p>
<p>NativeWindowを透過して、ドラッグする場合にはドラッグ用のインスタンスを追加して親ウィンドウをドラッグできるようにするが、一つ目のNativeWindowをドラッグした後に他のNativeWindowをドラッグしようとするとエラーが起きてしまう。　う〜ん　何故だろう？　原因わかったらコメントで追加します</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Bitmap</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">BitmapData</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">BitmapDataChannel</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span>NativeWindowInitOptions<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span>NativeWindowSystemChrome<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span>NativeWindowType<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span>NativeWindow<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Rectangle</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.system</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> NativeWindowMenu <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> mainWindow<span style="color: #000066; font-weight: bold;">:</span>NativeWindow<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> partsWindow<span style="color: #000066; font-weight: bold;">:</span>NativeWindow<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> propatyWindow<span style="color: #000066; font-weight: bold;">:</span>NativeWindow<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//NativeWindow生成</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> NativeWindowMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//Windowの体裁と振る舞いの設定</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> windowOptions<span style="color: #000066; font-weight: bold;">:</span>NativeWindowInitOptions = <span style="color: #0033ff; font-weight: bold;">new</span> NativeWindowInitOptions<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			windowOptions<span style="color: #000066; font-weight: bold;">.</span>systemChrome = NativeWindowSystemChrome<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">STANDARD</span><span style="color: #000066; font-weight: bold;">;</span>
			windowOptions<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">type</span> = NativeWindowType<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NORMAL</span><span style="color: #000066; font-weight: bold;">;</span>
			windowOptions<span style="color: #000066; font-weight: bold;">.</span>resizable = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
			windowOptions<span style="color: #000066; font-weight: bold;">.</span>maximizable = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
			windowOptions<span style="color: #000066; font-weight: bold;">.</span>minimizable = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #009900; font-style: italic;">//windowOptions.transparent  = true;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> w<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span> = <span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">screenResolutionX</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> h<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span> = <span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">screenResolutionY</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			partsWindow = <span style="color: #0033ff; font-weight: bold;">new</span> NativeWindow<span style="color: #000000;">&#40;</span>windowOptions<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> = h <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleMode</span> = <span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NO_SCALE</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = <span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TOP_LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span>bounds = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Rectangle</span><span style="color: #000000;">&#40;</span>w <span style="color: #000066; font-weight: bold;">-</span> partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">,</span> partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span>title = <span style="color: #990000;">&quot;部品&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span>alwaysInFront = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>createDragBar<span style="color: #000000;">&#40;</span>partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> 0x333333<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> _startMove<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>			
&nbsp;
			<span style="color: #009900; font-style: italic;">//-------------------------------------------------------------------------</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> myText<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			myText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">selectable</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
			myText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;ABCDEFG&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			myText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">getChildByName</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;myTXT&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
					propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">removeChild</span><span style="color: #000000;">&#40;</span>propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">getChildByName</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;myTXT&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> propatyText<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				propatyText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;show me?&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				propatyText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">name</span> = <span style="color: #990000;">&quot;myTXT&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>propatyText<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #009900; font-style: italic;">//partsWindow.stage.addChild(myText);</span>
			<span style="color: #009900; font-style: italic;">//-------------------------------------------------------------------------			</span>
			propatyWindow = <span style="color: #0033ff; font-weight: bold;">new</span> NativeWindow<span style="color: #000000;">&#40;</span>windowOptions<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = w<span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> = <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleMode</span> = <span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NO_SCALE</span><span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = <span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TOP_LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span>bounds = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Rectangle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> h <span style="color: #000066; font-weight: bold;">-</span> propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">,</span> propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span>title = <span style="color: #990000;">&quot;プロパティ&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span>alwaysInFront = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>createDragBar<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">,</span> propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> 0x333333<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> _startMove<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
&nbsp;
			mainWindow = <span style="color: #0033ff; font-weight: bold;">new</span> NativeWindow<span style="color: #000000;">&#40;</span>windowOptions<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			mainWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">640</span><span style="color: #000066; font-weight: bold;">;</span>
			mainWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> = <span style="color: #000000; font-weight:bold;">420</span><span style="color: #000066; font-weight: bold;">;</span>
			mainWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleMode</span> = <span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NO_SCALE</span><span style="color: #000066; font-weight: bold;">;</span>
			mainWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = <span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TOP_LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			mainWindow<span style="color: #000066; font-weight: bold;">.</span>bounds = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Rectangle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">,</span> w <span style="color: #000066; font-weight: bold;">-</span> partsWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> h <span style="color: #000066; font-weight: bold;">-</span> propatyWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			mainWindow<span style="color: #000066; font-weight: bold;">.</span>title = <span style="color: #990000;">&quot;main&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			mainWindow<span style="color: #000066; font-weight: bold;">.</span>alwaysInFront = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
			mainWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span>nativeWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//Windowのドラッグ</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _startMove<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span>nativeWindow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span>nativeWindow<span style="color: #000066; font-weight: bold;">.</span>title<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span>nativeWindow<span style="color: #000066; font-weight: bold;">.</span>startMove<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> createDragBar<span style="color: #000000;">&#40;</span>targetWidth<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> targetHeight<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> targetAlpha<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span><span style="color: #000066; font-weight: bold;">,</span> targetBodyColor<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">uint</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> bmd<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span>targetWidth<span style="color: #000066; font-weight: bold;">,</span> targetHeight<span style="color: #000066; font-weight: bold;">,</span> targetAlpha<span style="color: #000066; font-weight: bold;">,</span> targetBodyColor<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> bmp<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bmd<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> dragBar<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			dragBar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">buttonMode</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
			dragBar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bmp<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			dragBar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">name</span> = <span style="color: #990000;">&quot;dragBar&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">return</span> dragBar<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>		
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/18/nativewindow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ContextMenu</title>
		<link>http://ojigotts-app.zono.cc/2010/02/18/contextmenu/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/18/contextmenu/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 04:17:54 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[flash.display.*]]></category>
		<category><![CDATA[ContextMenu]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=399</guid>
		<description><![CDATA[コンテキストメニューを使う事は、私自身あまり無いので気づかなかったのですが ブラウザで表示する場合と、AdobeAIRでの表示ではちょっと扱いが違うようだ ブラウザで表示する場合、特定のオブジェクトに対してコンテキストメニューを追加しなくても this.contextMenu = _ContextMenu; のように [ this ] に対して設定する事が出来るが、AdobeAIRの場合は特定のオブジェクトに対して設定しないとコンテキストメニューが表示されないようだ 例：[ムービークリップオブジェクト].contextMenu = _ContextMenu; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/18/contextmenu/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>コンテキストメニューを使う事は、私自身あまり無いので気づかなかったのですが<br />
ブラウザで表示する場合と、AdobeAIRでの表示ではちょっと扱いが違うようだ</p>
<p>ブラウザで表示する場合、特定のオブジェクトに対してコンテキストメニューを追加しなくても<br />
this.contextMenu = _ContextMenu;<br />
のように [ this ] に対して設定する事が出来るが、AdobeAIRの場合は特定のオブジェクトに対して設定しないとコンテキストメニューが表示されないようだ</p>
<p>例：[ムービークリップオブジェクト].contextMenu = _ContextMenu;</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="50" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/ContextMenuTest.swf" /><embed type="application/x-shockwave-flash" width="400" height="50" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/ContextMenuTest.swf"></embed></object></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.net</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.system</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.ui</span><span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ContextMenuClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _ContextMenu<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">ContextMenu</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _SubMenu<span style="color: #000066; font-weight: bold;">:</span>NativeMenu<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> ContextMenuClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
			<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;ContextMenuClass&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">showDefaultContextMenu</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #6699cc; font-weight: bold;">var</span> myMC<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> bmd<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> 0xCCCCCC<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> bmp<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bmd<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			myMC<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bmp<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>myMC<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			_ContextMenu = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">ContextMenu</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_ContextMenu<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">hideBuiltInItems</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			_SubMenu = <span style="color: #0033ff; font-weight: bold;">new</span> NativeMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//コンテキストメニューアイテムにプロパティを設定する</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> captionArray<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> count<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> count<span style="color: #000066; font-weight: bold;">&lt;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span> count<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> itemName<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;項目&quot;</span> <span style="color: #000066; font-weight: bold;">+</span> count<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				captionArray<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span>itemName<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">&lt;</span>captionArray<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> item<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">ContextMenuItem</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">ContextMenuItem</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>i<span style="color: #000066; font-weight: bold;">&lt;</span><span style="color: #000000; font-weight:bold;">5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">caption</span> = captionArray<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>											<span style="color: #009900; font-style: italic;">// キャプション名</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>													<span style="color: #009900; font-style: italic;">// 有効か</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">separatorBefore</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>											<span style="color: #009900; font-style: italic;">// １つ上にセパレータを付ける</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>													<span style="color: #009900; font-style: italic;">// 可視表示するか</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">ContextMenuEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MENU_ITEM_SELECT</span><span style="color: #000066; font-weight: bold;">,</span>selectHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// 項目選択時の処理</span>
					_ContextMenu<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">customItems</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span>item<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span><span style="color: #0033ff; font-weight: bold;">else</span><span style="color: #000000;">&#123;</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">caption</span> = captionArray<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>											<span style="color: #009900; font-style: italic;">// キャプション名</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>													<span style="color: #009900; font-style: italic;">// 有効か</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">separatorBefore</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>											<span style="color: #009900; font-style: italic;">// １つ上にセパレータを付ける</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>													<span style="color: #009900; font-style: italic;">// 可視表示するか</span>
					item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">ContextMenuEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MENU_ITEM_SELECT</span><span style="color: #000066; font-weight: bold;">,</span>selectHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// 項目選択時の処理</span>
					_SubMenu<span style="color: #000066; font-weight: bold;">.</span>addItem<span style="color: #000000;">&#40;</span>item<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #009900; font-style: italic;">// item.visible = true or false で項目毎の表示がハンドリング可</span>
			myMC<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">contextMenu</span> = _ContextMenu<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> selectHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">caption</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/18/contextmenu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>グラデーション</title>
		<link>http://ojigotts-app.zono.cc/2010/02/12/389/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/12/389/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 09:26:06 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[グラデーション]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=389</guid>
		<description><![CDATA[マウスドラッグすると、指定した色でグラデーション描画 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/12/389/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>マウスドラッグすると、指定した色でグラデーション描画<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/main.swf" /><embed type="application/x-shockwave-flash" width="400" height="200" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/main.swf"></embed></object></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Matrix</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Point</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
	<span style="color: #000000;">&#91;</span>SWF<span style="color: #000000;">&#40;</span><span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;500&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;400&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">color</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #000000;">&#91;</span>0xFEBF05<span style="color: #000066; font-weight: bold;">,</span> 0xFFD65D<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Point</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Point</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> canvas<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> drag<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> parentWidth<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> parentHeight<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>	
			<span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #009900; font-style: italic;">//Wonderfl.capture_delay(15);</span>
			<span style="color: #009900; font-style: italic;">//親MCの大きさを定義</span>
			parentWidth = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span><span style="color: #000066; font-weight: bold;">;</span>
			parentHeight = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageHeight</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//グラデーションの描画対象を定義</span>
			canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0xFFFFFF<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> parentWidth<span style="color: #000066; font-weight: bold;">,</span> parentHeight<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>canvas<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//グラデーションを描画する際に使用する位置、角度情報を取得するドラッグオブジェクトの定義</span>
			drag = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>drag<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//色を決定するカラーパネル（ラジオボタン）</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> ColorPanel<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> shape<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Shape</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Shape</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> 0xCCCCCC<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0xE1E1E1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">150</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">200</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">alpha</span> = <span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000066; font-weight: bold;">;</span>
			ColorPanel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>shape<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
&nbsp;
			<span style="color: #009900; font-style: italic;">//カラーパネルの描画位置</span>
			ColorPanel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = parentWidth <span style="color: #000066; font-weight: bold;">-</span> ColorPanel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">;</span>
			ColorPanel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = parentHeight <span style="color: #000066; font-weight: bold;">-</span> ColorPanel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>ColorPanel<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
&nbsp;
			<span style="color: #009900; font-style: italic;">//選択色 配列</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> colorNames<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Yellow&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Blue&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Red&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Green&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Pear&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> colorArr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>0xFEBF05<span style="color: #000066; font-weight: bold;">,</span> 0xFFD65D<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#91;</span>0x80E0F8<span style="color: #000066; font-weight: bold;">,</span> 0xCDF8FF<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#91;</span>0x6D0019<span style="color: #000066; font-weight: bold;">,</span> 0xA80329<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#91;</span>0x7DE31F<span style="color: #000066; font-weight: bold;">,</span> 0xC7FE30<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#91;</span>0xD1D360<span style="color: #000066; font-weight: bold;">,</span> 0xE5E695<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> radioButton<span style="color: #000066; font-weight: bold;">:</span>RadioButton<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> radioGroup<span style="color: #000066; font-weight: bold;">:</span>RadioButtonGroup = <span style="color: #0033ff; font-weight: bold;">new</span> RadioButtonGroup<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Colors&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">&lt;</span>colorArr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				radioButton = <span style="color: #0033ff; font-weight: bold;">new</span> RadioButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				radioButton<span style="color: #000066; font-weight: bold;">.</span>group = radioGroup<span style="color: #000066; font-weight: bold;">;</span>
				radioButton<span style="color: #000066; font-weight: bold;">.</span>label = colorNames<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
				radioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span> = colorArr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
				ColorPanel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>radioButton<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				radioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
				radioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = i <span style="color: #000066; font-weight: bold;">*</span> radioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">70</span><span style="color: #000066; font-weight: bold;">;</span>
				radioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> _SelectEvent<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>i==<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span> radioButton<span style="color: #000066; font-weight: bold;">.</span>selected = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
&nbsp;
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> _onMouseDown<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_UP</span><span style="color: #000066; font-weight: bold;">,</span> _onMouseUp<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//選択されたラジオボタン</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _SelectEvent<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">color</span> = event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//グラデーションの幅と角度の確定　----------------------------------------------------</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _onMouseDown<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #004993;">mouseX</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = <span style="color: #004993;">mouseY</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1.0</span><span style="color: #000066; font-weight: bold;">,</span> 0x7F7F7F<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0xFFFFFF<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawCircle</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_MOVE</span><span style="color: #000066; font-weight: bold;">,</span> _onMouseMove<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//---------------------------------------------------------------------------------</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _onMouseMove<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1.0</span><span style="color: #000066; font-weight: bold;">,</span> 0x9F9F9F<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">moveTo</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">mouseX</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">mouseY</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1.0</span><span style="color: #000066; font-weight: bold;">,</span> 0x7F7F7F<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0x333333<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawCircle</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawCircle</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">mouseX</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">mouseY</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//---------------------------------------------------------------------------------</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _onMouseUp<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
				drag<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_MOVE</span><span style="color: #000066; font-weight: bold;">,</span> _onMouseMove<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #6699cc; font-weight: bold;">var</span> dist<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">sqrt</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">pow</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">mouseX</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">pow</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">mouseY</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> radian<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">atan2</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">mouseY</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">mouseX</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">matrix</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Matrix</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Matrix</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #004993;">matrix</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">createGradientBox</span><span style="color: #000000;">&#40;</span>parentWidth<span style="color: #000066; font-weight: bold;">,</span> parentHeight<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">-</span>parentWidth<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">-</span>parentHeight<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginGradientFill</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;linear&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">color</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1.0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1.0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">127</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">128</span> <span style="color: #000066; font-weight: bold;">+</span> dist <span style="color: #000066; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">1400</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">255</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">matrix</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">700</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">700</span><span style="color: #000066; font-weight: bold;">,</span> parentWidth <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span> parentHeight <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">;</span>
				canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = <span style="color: #004993;">start</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">;</span>
				canvas<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">rotation</span> = radian <span style="color: #009966; font-style: italic;">/ (Math.PI /</span> <span style="color: #000000; font-weight:bold;">180</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>				
				<span style="color: #009900; font-style: italic;">//trace(color + &quot;\n&quot; + 128 + dist/parentWidth * 255 + &quot;\n&quot; + matrix + &quot;\n&quot; );</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/12/389/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>loaderInfo.loaderURL</title>
		<link>http://ojigotts-app.zono.cc/2010/02/05/loaderinfo-url/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/05/loaderinfo-url/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 04:28:29 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>
		<category><![CDATA[loaderInfo]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=378</guid>
		<description><![CDATA[swfファイルの絶対パスを取得するには、「stage.loaderInfo.loaderURL」で取得 var thisURL:String = stage.loaderInfo.loaderURL; var resultText:TextField = new TextField&#40;&#41;; resultText.autoSize = TextFieldAutoSize.LEFT; &#160; resultText.x = 5; resultText.y = 5; &#160; resultText.text = &#34;このSWFのパスは &#34;+ thisURL; &#160; addChild&#40;resultText&#41;;]]></description>
			<content:encoded><![CDATA[<p>swfファイルの絶対パスを取得するには、「stage.loaderInfo.loaderURL」で取得</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="50" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/LoaderInf-url1.swf" /><embed type="application/x-shockwave-flash" width="400" height="50" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/LoaderInf-url1.swf"></embed></object></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> thisURL<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loaderInfo</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loaderURL</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> resultText<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
resultText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
resultText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
resultText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
resultText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;このSWFのパスは &quot;</span><span style="color: #000066; font-weight: bold;">+</span> thisURL<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>resultText<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/05/loaderinfo-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColorPicker</title>
		<link>http://ojigotts-app.zono.cc/2010/02/04/colorpicker/</link>
		<comments>http://ojigotts-app.zono.cc/2010/02/04/colorpicker/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 02:55:49 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[flash.text.*]]></category>
		<category><![CDATA[ColorPicker]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=335</guid>
		<description><![CDATA[カラーピッカーを使った場合、hexValueを使ってRGBへ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 package&#123; &#160; import flash.display.*; import flash.events.*; import flash.text.*; import fl.controls.*; &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/02/04/colorpicker/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="170" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/ColorPicker.swf" /><embed type="application/x-shockwave-flash" width="300" height="170" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/02/ColorPicker.swf"></embed></object></p>
<p>カラーピッカーを使った場合、hexValueを使ってRGBへ</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ColorPickerClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _ColorPicker<span style="color: #000066; font-weight: bold;">:</span>ColorPicker = <span style="color: #0033ff; font-weight: bold;">new</span> ColorPicker<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> resultTXT0<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> resultTXT1<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> ColorPickerClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
			_ColorPicker<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CHANGE</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
										  resultTXT0<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;_ColorPicker.selectedColor: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #004993;">String</span><span style="color: #000000;">&#40;</span>_ColorPicker<span style="color: #000066; font-weight: bold;">.</span>selectedColor<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
										  resultTXT1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">'&quot;0x&quot;+String(_ColorPicker.hexValue): '</span><span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot;0x&quot;</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #004993;">String</span><span style="color: #000000;">&#40;</span>_ColorPicker<span style="color: #000066; font-weight: bold;">.</span>hexValue<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
										<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_ColorPicker<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>resultTXT0<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>resultTXT1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT0<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = _ColorPicker<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT0<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = resultTXT0<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = resultTXT0<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/02/04/colorpicker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CheckBox</title>
		<link>http://ojigotts-app.zono.cc/2010/01/29/checkbox/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/29/checkbox/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 04:59:27 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[flash.text.*]]></category>
		<category><![CDATA[CheckBox]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=314</guid>
		<description><![CDATA[アンケートフォームなどで良く利用されるCheckBox。 他の言語同様にその扱いは同じ CheckBoxの場合、[選択・非選択]のイベントをとるコンポーネントなので　アンケートフォームやFlashアプリにおける管理系（例えば音声のON,OFF）などで使うと便利 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 package&#123; &#160; import flash.display.*; import flash.events.*; &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/29/checkbox/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>アンケートフォームなどで良く利用されるCheckBox。 他の言語同様にその扱いは同じ<br />
CheckBoxの場合、[選択・非選択]のイベントをとるコンポーネントなので　アンケートフォームやFlashアプリにおける管理系（例えば音声のON,OFF）などで使うと便利</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="50" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/CheckBox.swf" /><embed type="application/x-shockwave-flash" width="400" height="50" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/CheckBox.swf"></embed></object></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>events<span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> CheckBoxClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _CheckBox<span style="color: #000066; font-weight: bold;">:</span>CheckBox = <span style="color: #0033ff; font-weight: bold;">new</span> CheckBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> resultTXT<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> CheckBoxClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
			_CheckBox<span style="color: #000066; font-weight: bold;">.</span>label = <span style="color: #990000;">&quot;選択・非選択&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			_CheckBox<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CHANGE</span><span style="color: #000066; font-weight: bold;">,</span> showData<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_CheckBox<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>resultTXT<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">30</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;なし&quot;</span>
&nbsp;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> showData<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>_CheckBox<span style="color: #000066; font-weight: bold;">.</span>selected<span style="color: #000000;">&#41;</span> resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;あり&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">else</span> resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;なし&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/29/checkbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TileListClass</title>
		<link>http://ojigotts-app.zono.cc/2010/01/29/tilelistclass/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/29/tilelistclass/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 04:48:31 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[TileList]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=307</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/29/tilelistclass/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="320" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/TileList1.swf" /><embed type="application/x-shockwave-flash" width="320" height="200" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/TileList1.swf"></embed></object></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>Slider<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>TileList<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000066; font-weight: bold;">.</span>DataProvider<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>events<span style="color: #000066; font-weight: bold;">.</span>SliderEvent<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> TileListClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> TileListClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
			<span style="color: #6699cc; font-weight: bold;">var</span> baseURL<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;http://www.helpexamples.com/flash/images/&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #6699cc; font-weight: bold;">var</span> imagesXML<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span> =
					<span style="color: #000066; font-weight: bold;">&lt;</span>img src=<span style="color: #990000;">&quot;image1.jpg&quot;</span> alt=<span style="color: #990000;">&quot;Image 1&quot;</span> <span style="color: #000066; font-weight: bold;">/&gt;</span>
					<span style="color: #000066; font-weight: bold;">&lt;</span>img src=<span style="color: #990000;">&quot;image2.jpg&quot;</span> alt=<span style="color: #990000;">&quot;Image 2&quot;</span> <span style="color: #000066; font-weight: bold;">/&gt;</span>
					<span style="color: #000066; font-weight: bold;">&lt;</span>img src=<span style="color: #990000;">&quot;image3.jpg&quot;</span> alt=<span style="color: #990000;">&quot;Image 3&quot;</span> <span style="color: #000066; font-weight: bold;">/&gt;</span>
				<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #6699cc; font-weight: bold;">var</span> dp<span style="color: #000066; font-weight: bold;">:</span>DataProvider = <span style="color: #0033ff; font-weight: bold;">new</span> DataProvider<span style="color: #000000;">&#40;</span>imagesXML<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #6699cc; font-weight: bold;">var</span> columnWidthSlider<span style="color: #000066; font-weight: bold;">:</span>Slider = <span style="color: #0033ff; font-weight: bold;">new</span> Slider<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span>minimum = <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span>maximum = <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span> = <span style="color: #000000; font-weight:bold;">150</span><span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span>liveDragging = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span>snapInterval = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span>tickInterval = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span>maximum <span style="color: #000066; font-weight: bold;">-</span> columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span>minimum<span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span>move<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>SliderEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CHANGE</span><span style="color: #000066; font-weight: bold;">,</span> changeHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>columnWidthSlider<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #6699cc; font-weight: bold;">var</span> myTileList<span style="color: #000066; font-weight: bold;">:</span>TileList = <span style="color: #0033ff; font-weight: bold;">new</span> TileList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			myTileList<span style="color: #000066; font-weight: bold;">.</span>dataProvider = dp<span style="color: #000066; font-weight: bold;">;</span>
			myTileList<span style="color: #000066; font-weight: bold;">.</span>labelField = <span style="color: #990000;">&quot;alt&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
			myTileList<span style="color: #000066; font-weight: bold;">.</span>sourceFunction = mySourceFunction<span style="color: #000066; font-weight: bold;">;</span>
			myTileList<span style="color: #000066; font-weight: bold;">.</span>columnWidth = columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span>
			myTileList<span style="color: #000066; font-weight: bold;">.</span>rowHeight = columnWidthSlider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span>
			myTileList<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">;</span>
			myTileList<span style="color: #000066; font-weight: bold;">.</span>rowCount = <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span>
			myTileList<span style="color: #000066; font-weight: bold;">.</span>move<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>myTileList<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #339966; font-weight: bold;">function</span> mySourceFunction<span style="color: #000000;">&#40;</span>item<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> <span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">return</span> baseURL <span style="color: #000066; font-weight: bold;">+</span> item<span style="color: #000066; font-weight: bold;">.</span>src<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
&nbsp;
			<span style="color: #339966; font-weight: bold;">function</span> changeHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span>SliderEvent<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
				myTileList<span style="color: #000066; font-weight: bold;">.</span>columnWidth = event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span>
				myTileList<span style="color: #000066; font-weight: bold;">.</span>rowHeight = event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span>
				myTileList<span style="color: #000066; font-weight: bold;">.</span>rowCount = <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/29/tilelistclass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slider</title>
		<link>http://ojigotts-app.zono.cc/2010/01/29/slider/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/29/slider/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 04:26:04 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=302</guid>
		<description><![CDATA[SliderはアナログチックなUIで視覚的に扱いやすいコンポーネント 上限、下限の値を自由に設定でき、スライドのつまみをドラッグする際に増減する最小単位のステップを設定する事が出来る。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 package&#123; import flash.display.*; import flash.events.*; import fl.controls.*; import &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/29/slider/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>SliderはアナログチックなUIで視覚的に扱いやすいコンポーネント<br />
上限、下限の値を自由に設定でき、スライドのつまみをドラッグする際に増減する最小単位のステップを設定する事が出来る。</p>
<p><a href="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/Slider.swf"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="30" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/Slider.swf" /><embed type="application/x-shockwave-flash" width="200" height="30" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/Slider.swf"></embed></object><br />
</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> SliderClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _Slider<span style="color: #000066; font-weight: bold;">:</span>Slider = <span style="color: #0033ff; font-weight: bold;">new</span> Slider<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> resultTXT<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> SliderClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
			_Slider<span style="color: #000066; font-weight: bold;">.</span>maximum = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span>			<span style="color: #009900; font-style: italic;">//最大値</span>
			_Slider<span style="color: #000066; font-weight: bold;">.</span>minimum = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>			<span style="color: #009900; font-style: italic;">//最小値</span>
			_Slider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>				<span style="color: #009900; font-style: italic;">//初期値</span>
			_Slider<span style="color: #000066; font-weight: bold;">.</span>snapInterval = <span style="color: #000000; font-weight:bold;">1.0</span><span style="color: #000066; font-weight: bold;">;</span>		<span style="color: #009900; font-style: italic;">//増減幅</span>
			_Slider<span style="color: #000066; font-weight: bold;">.</span>liveDragging = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
			_Slider<span style="color: #000066; font-weight: bold;">.</span>move<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>			<span style="color: #009900; font-style: italic;">//表示位置</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_Slider<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>resultTXT<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_Slider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_MOVE</span><span style="color: #000066; font-weight: bold;">,</span> _mouseMove<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = _Slider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">+</span> _Slider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = _Slider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> <span style="color: #000066; font-weight: bold;">-</span> resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #004993;">String</span><span style="color: #000000;">&#40;</span>_Slider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _mouseMove<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #004993;">String</span><span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/29/slider/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ScrollPane</title>
		<link>http://ojigotts-app.zono.cc/2010/01/29/scrollpane/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/29/scrollpane/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 03:05:54 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[ScrollPane]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=300</guid>
		<description><![CDATA[ScrollPane内に表示オブジェクトをaddChildすると、ScrollPaneよりオブジェクトが大きかった場合に動的にスクロールバーを表示し、ユーザーの任意でオブジェクト全体を閲覧できるようになる。 固定領域にテキスト、画像、動画を表示したい場合などに使うと便利かも 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/29/scrollpane/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>ScrollPane内に表示オブジェクトをaddChildすると、ScrollPaneよりオブジェクトが大きかった場合に動的にスクロールバーを表示し、ユーザーの任意でオブジェクト全体を閲覧できるようになる。<br />
固定領域にテキスト、画像、動画を表示したい場合などに使うと便利かも</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="150" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/ScrollPane.swf" /><embed type="application/x-shockwave-flash" width="400" height="150" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/ScrollPane.swf"></embed></object></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>containers<span style="color: #000066; font-weight: bold;">.</span>ScrollPane<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>events<span style="color: #000066; font-weight: bold;">.</span>ScrollEvent<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>ScrollBarDirection<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ScrollPaneClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> ScrollPaneClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> _ScrollPane<span style="color: #000066; font-weight: bold;">:</span>ScrollPane = <span style="color: #0033ff; font-weight: bold;">new</span> ScrollPane<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//samplBoxを作る</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> A_Box<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> B_Box<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			drawBox<span style="color: #000000;">&#40;</span>A_Box<span style="color: #000066; font-weight: bold;">,</span> 0xFF0000<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">240</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">200</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>		<span style="color: #009900; font-style: italic;">//</span>
			drawBox<span style="color: #000000;">&#40;</span>B_Box<span style="color: #000066; font-weight: bold;">,</span>0x000000<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">40</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">80</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>			<span style="color: #009900; font-style: italic;">//</span>
&nbsp;
			<span style="color: #339966; font-weight: bold;">function</span> drawBox<span style="color: #000000;">&#40;</span>box<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">color</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">uint</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">uint</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">uint</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
				box<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">color</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				box<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">height</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				box<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//スクロールペイン対象セット</span>
			_ScrollPane<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">source</span> = A_Box<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//_ScrollPaneサイズ</span>
			_ScrollPane<span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">255</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">120</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//移動距離</span>
			_ScrollPane<span style="color: #000066; font-weight: bold;">.</span>verticalLineScrollSize=<span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//表示位置</span>
			_ScrollPane<span style="color: #000066; font-weight: bold;">.</span>move<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">40</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			_ScrollPane<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>ScrollEvent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">SCROLL</span><span style="color: #000066; font-weight: bold;">,</span> scrollHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_ScrollPane<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_ScrollPane<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">source</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>B_Box<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//垂直スクロール時にイベント取得</span>
			<span style="color: #339966; font-weight: bold;">function</span> scrollHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span>ScrollEvent<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/29/scrollpane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RadioButton</title>
		<link>http://ojigotts-app.zono.cc/2010/01/29/radiobutton/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/29/radiobutton/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 02:46:54 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[RadioButton]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=295</guid>
		<description><![CDATA[CheckBox同様、アンケートフォームなどで良く利用されるRadioButton。他の言語同様にその扱いは同じ RadioButtonGroupが同グループならグループ内のRadioButtonは選択されたボタンはON,それ以外はOFFとなる 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/29/radiobutton/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>CheckBox同様、アンケートフォームなどで良く利用されるRadioButton。他の言語同様にその扱いは同じ<br />
RadioButtonGroupが同グループならグループ内のRadioButtonは選択されたボタンはON,それ以外はOFFとなる</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="50" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/RadioButton.swf" /><embed type="application/x-shockwave-flash" width="400" height="50" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/RadioButton.swf"></embed></object></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>RadioButton<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>RadioButtonGroup<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> RadioButtonClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _RadioButton<span style="color: #000066; font-weight: bold;">:</span>RadioButton<span style="color: #000066; font-weight: bold;">;</span>									<span style="color: #009900; font-style: italic;">//ラジオボタン</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> labelArr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;YES&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;NO&quot;</span><span style="color: #000000;">&#93;</span>								<span style="color: #009900; font-style: italic;">//ラベル配列</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _RBGroup<span style="color: #000066; font-weight: bold;">:</span>RadioButtonGroup = <span style="color: #0033ff; font-weight: bold;">new</span> RadioButtonGroup<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;JUDGE&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>	<span style="color: #009900; font-style: italic;">//グループ名</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> resultTXT<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> RadioButtonClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">&lt;</span>labelArr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				_RadioButton = <span style="color: #0033ff; font-weight: bold;">new</span> RadioButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				_RadioButton<span style="color: #000066; font-weight: bold;">.</span>label = labelArr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
				_RadioButton<span style="color: #000066; font-weight: bold;">.</span>group = _RBGroup<span style="color: #000066; font-weight: bold;">;</span>
				_RadioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
				_RadioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = <span style="color: #000000;">&#40;</span>_RadioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> i<span style="color: #000066; font-weight: bold;">;</span>
				_RadioButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> showData<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_RadioButton<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>i == <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
					_RadioButton<span style="color: #000066; font-weight: bold;">.</span>selected = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
&nbsp;
			resultTXT = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = labelArr<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>resultTXT<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> showData<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;CLICKED LABEL - &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span>label <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot;<span style="">\n</span><span style="">\n</span>&quot;</span>
							<span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot;GROUP NAME -   &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span><span style="color: #000066; font-weight: bold;">.</span>group<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">name</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/29/radiobutton/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NumericStepper</title>
		<link>http://ojigotts-app.zono.cc/2010/01/29/numericstepper/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/29/numericstepper/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 01:59:27 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[NumericStepper]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=291</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 package&#123; import flash.display.*; import flash.events.*; import &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/29/numericstepper/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>	
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> NumericStepperClass <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _Numeric<span style="color: #000066; font-weight: bold;">:</span>NumericStepper<span style="color: #000066; font-weight: bold;">;</span>	<span style="color: #009900; font-style: italic;">//</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _maximun<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>		<span style="color: #009900; font-style: italic;">//最大値</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _minimum<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>		<span style="color: #009900; font-style: italic;">//最小値</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _default<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>		<span style="color: #009900; font-style: italic;">//初期値</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _StepSize<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>		<span style="color: #009900; font-style: italic;">//増減幅</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> resultTXT<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> NumericStepperClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
			 _Numeric = <span style="color: #0033ff; font-weight: bold;">new</span> NumericStepper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			 _Numeric<span style="color: #000066; font-weight: bold;">.</span>maximum = _maximun<span style="color: #000066; font-weight: bold;">;</span>
			 _Numeric<span style="color: #000066; font-weight: bold;">.</span>minimum = _minimum<span style="color: #000066; font-weight: bold;">;</span>
			 _Numeric<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
			 _Numeric<span style="color: #000066; font-weight: bold;">.</span>stepSize = _StepSize<span style="color: #000066; font-weight: bold;">;</span>
			_Numeric<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CHANGE</span><span style="color: #000066; font-weight: bold;">,</span> showNum<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_Numeric<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = _Numeric<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = _Numeric<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> <span style="color: #000066; font-weight: bold;">+</span> _Numeric<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>resultTXT<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> showNum<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
			resultTXT<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #004993;">String</span><span style="color: #000000;">&#40;</span>_Numeric<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">value</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/29/numericstepper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DataGrid</title>
		<link>http://ojigotts-app.zono.cc/2010/01/28/datagrid/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/28/datagrid/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 09:12:58 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[fl.controls.*;]]></category>
		<category><![CDATA[DataGrid]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=281</guid>
		<description><![CDATA[package&#123; &#160; import flash.display.*; import flash.events.*; import fl.data.DataProvider; import fl.controls.*; &#160; public class Main extends Sprite&#123; public function Main&#40;&#41;&#123; &#160; //DataGridを生成して、追加 var aDg:DataGrid = new DataGrid&#40;&#41;; addChild&#40;aDg&#41;; bldRosterGrid&#40;aDg&#41;; &#160; //配列の生成 var aRoster:Array = new Array&#40;&#41;; aRoster = &#91; &#123;Name:&#34;Wilma Carter&#34;, &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/28/datagrid/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/DataGrid1.swf" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://ojigotts-app.zono.cc/wp-content/uploads/2010/01/DataGrid1.swf"></embed></object></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000066; font-weight: bold;">.</span>DataProvider<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//DataGridを生成して、追加</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> aDg<span style="color: #000066; font-weight: bold;">:</span>DataGrid = <span style="color: #0033ff; font-weight: bold;">new</span> DataGrid<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>aDg<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			bldRosterGrid<span style="color: #000000;">&#40;</span>aDg<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//配列の生成</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> aRoster<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			aRoster = <span style="color: #000000;">&#91;</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Wilma Carter&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;So&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Redlands, CA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Sue Pennypacker&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Fr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Athens, GA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Jill Smithfield&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Sr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Spokane, WA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Shirley Goth&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Sr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Carson, NV&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Jennifer Dunbar&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Fr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Seaside, CA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Patty Crawford&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Jr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Whittier, CA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Angelina Davis&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;So&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Odessa, TX&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Maria Santiago&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Sr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Tacoma, WA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Debbie Ferguson&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Jr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Bend, OR&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Karen Bronson&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Sr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Billings, MO&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Sylvia Munson&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Jr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Pasadena, CA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Carla Gomez&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Sr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Corona, CA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
					<span style="color: #000000;">&#123;</span>Name<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;Betty Kay&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Bats<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Throws<span style="color: #000066; font-weight: bold;">:</span><span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Year<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Fr&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Home<span style="color: #000066; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Palo Alto, CA&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
			<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span> 
&nbsp;
			aDg<span style="color: #000066; font-weight: bold;">.</span>dataProvider = <span style="color: #0033ff; font-weight: bold;">new</span> DataProvider<span style="color: #000000;">&#40;</span>aRoster<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			aDg<span style="color: #000066; font-weight: bold;">.</span>rowCount = aDg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> 
&nbsp;
			<span style="color: #339966; font-weight: bold;">function</span> bldRosterGrid<span style="color: #000000;">&#40;</span>dg<span style="color: #000066; font-weight: bold;">:</span>DataGrid<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				dg<span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">400</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">300</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">//ラベルの並び順指定</span>
				dg<span style="color: #000066; font-weight: bold;">.</span>columns = <span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;Name&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Bats&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Throws&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Year&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Home&quot;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">//各カラムの幅指定</span>
				dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
				dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">;</span>
				dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">;</span>
				dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">40</span><span style="color: #000066; font-weight: bold;">;</span>
				dg<span style="color: #000066; font-weight: bold;">.</span>columns<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
				dg<span style="color: #000066; font-weight: bold;">.</span>move<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/28/datagrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stageの設定フォーマット</title>
		<link>http://ojigotts-app.zono.cc/2010/01/26/stage%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/26/stage%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 05:45:24 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[ActionScript3.0]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=243</guid>
		<description><![CDATA[[SWF(width="横幅", height="縦幅", backgroundColor="カラー", frameRate="フレームレート")] 1 2 3 4 5 6 7 8 9 10 11 12 13 package&#123; import flash.display.Sprite; import flash.display.MovieClip; import flash.events.Event; import flash.events.MouseEvent; &#160; &#91;SWF&#40;width=&#34;640&#34;, height=&#34;400&#34;, backgroundColor=&#34;0xFFFFFF&#34;, frameRate=&#34;36&#34;&#41;&#93; public class Main extends Sprite&#123; public function Main&#40;&#41;&#123; // &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/26/stage%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>[SWF(width="横幅", height="縦幅", backgroundColor="カラー", frameRate="フレームレート")]</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #000000;">&#91;</span>SWF<span style="color: #000000;">&#40;</span><span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;640&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;400&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">backgroundColor</span>=<span style="color: #990000;">&quot;0xFFFFFF&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">frameRate</span>=<span style="color: #990000;">&quot;36&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
			<span style="color: #009900; font-style: italic;">//</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/26/stage%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>drawRoundRect</title>
		<link>http://ojigotts-app.zono.cc/2010/01/26/228/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/26/228/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 01:27:58 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[flash.display.*]]></category>
		<category><![CDATA[drawRoundRect]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=228</guid>
		<description><![CDATA[角丸四角形を生成 propatyを渡してくれたら指示通りの角丸四角を返してくれるクラス propatyオブジェクトのカスタムプロパティは以下 private var propaty:Object; propaty = { propaty.parent, //親MC propaty.id, //id propaty.name, //ラベル propaty.Position, //基準点 propaty.width, //幅 propaty.height, //高さ propaty.cornerVal, //角丸値 propaty.lineSize, //線の太さ propaty.lineColor, //線色 propaty.bodyColor //胴色 } 以下に上記propatyを投げるとshapeオブジェクトで返される 1 2 3 4 5 6 7 8 9 &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/26/228/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>角丸四角形を生成<br />
propatyを渡してくれたら指示通りの角丸四角を返してくれるクラス<br />
propatyオブジェクトのカスタムプロパティは以下</p>
<pre>
private var propaty:Object;
propaty = {
	propaty.parent,			//親MC
	propaty.id,			//id
	propaty.name,			//ラベル
	propaty.Position,		//基準点
	propaty.width,			//幅
	propaty.height,			//高さ
	propaty.cornerVal,		//角丸値
	propaty.lineSize, 		//線の太さ
	propaty.lineColor,		//線色
	propaty.bodyColor		//胴色
}
</pre>
<p>以下に上記propatyを投げるとshapeオブジェクトで返される</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span><span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> <span style="color: #004993;">drawRoundRect</span> <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">drawRoundRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> SET<span style="color: #000000;">&#40;</span>propaty<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Shape</span><span style="color: #000000;">&#123;</span>
			<span style="color: #009900; font-style: italic;">//座標の中心を「propaty.Position」がtrueなら真ん中、falseなら左上</span>
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>propaty<span style="color: #000066; font-weight: bold;">.</span>Position<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> xPos<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000066; font-weight: bold;">-</span>propaty<span style="color: #000066; font-weight: bold;">.</span>Radius<span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> yPos<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000066; font-weight: bold;">-</span>propaty<span style="color: #000066; font-weight: bold;">.</span>Radius<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> shape<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Shape</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Shape</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span>propaty<span style="color: #000066; font-weight: bold;">.</span>lineSize<span style="color: #000066; font-weight: bold;">,</span> propaty<span style="color: #000066; font-weight: bold;">.</span>lineColor<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>propaty<span style="color: #000066; font-weight: bold;">.</span>bodyColor<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			shape<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRoundRect</span><span style="color: #000000;">&#40;</span>propaty<span style="color: #000066; font-weight: bold;">.</span>xPos<span style="color: #000066; font-weight: bold;">,</span> propaty<span style="color: #000066; font-weight: bold;">.</span>yPos<span style="color: #000066; font-weight: bold;">,</span> propaty<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> propaty<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">,</span> propaty<span style="color: #000066; font-weight: bold;">.</span>cornerVal<span style="color: #000066; font-weight: bold;">,</span> propaty<span style="color: #000066; font-weight: bold;">.</span>cornerVal<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">return</span> shape<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/26/228/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextFormat &#8211; size,color,font,bold,italic 「テキストフォーマット 」</title>
		<link>http://ojigotts-app.zono.cc/2010/01/19/%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88-sizecolorfontbolditalic/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/19/%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88-sizecolorfontbolditalic/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 00:45:14 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[flash.text.*]]></category>
		<category><![CDATA[TextFormat]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=201</guid>
		<description><![CDATA[テキストのサイズ、カラー、フォント、太字、イタリックを指定するには、 TextFormatを使います。 - 例 - 1 2 3 4 5 6 7 8 9 10 11 import flash.text.*; &#160; var txtField:TextField = new TextField&#40;&#41;; var txtFormat:TextFormat = new TextFormat&#40;&#41;; txtFormat.size = 12; // 文字サイズ txtFormat.color = 0x000000; // 文字色 txtFormat.font &#8230;<p class="read-more"><a href="http://ojigotts-app.zono.cc/2010/01/19/%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88-sizecolorfontbolditalic/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>テキストのサイズ、カラー、フォント、太字、イタリックを指定するには、<br />
TextFormatを使います。</p>
<p>- 例 -</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> txtField<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> txtFormat<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextFormat</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextFormat</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
txtFormat<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #000000; font-weight:bold;">12</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// 文字サイズ</span>
txtFormat<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">color</span> = 0x000000<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// 文字色</span>
txtFormat<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">font</span> = <span style="color: #990000;">&quot;Arial&quot;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// 文字フォント</span>
txtFormat<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bold</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// 強調</span>
txtFormat<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">italic</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// イタリック</span>
txtFormat<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">underline</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// 下線</span>
txtField<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setTextFormat</span><span style="color: #000000;">&#40;</span>txtFormat<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/19/%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88-sizecolorfontbolditalic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calender &#8211; AdobeAIR</title>
		<link>http://ojigotts-app.zono.cc/2010/01/07/calender-adobeair/</link>
		<comments>http://ojigotts-app.zono.cc/2010/01/07/calender-adobeair/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 02:34:54 +0000</pubDate>
		<dc:creator>zonow</dc:creator>
				<category><![CDATA[d（⌒o⌒）b]]></category>

		<guid isPermaLink="false">http://ojigotts-app.zono.cc/?p=61</guid>
		<description><![CDATA[カレンダーつくります とりあえず、曜日の入ったカレンダーをレンダリングするところから /* --------------------------------------------------------------- カレンダー表示 1．現在の日時所得 2．指定年指定月の１日は何曜日かを得る。 */ $firstday = date&#40;&#34;w&#34;, mktime&#40;0,0,0,$month,1,$year&#41;&#41;; // 3．１日になるまで空白のセルを作成。 // 4．１日から順にセルに埋める。 // 5. 末日以降の空白のセルを作成す。]]></description>
			<content:encoded><![CDATA[<p>カレンダーつくります</p>
<p>とりあえず、曜日の入ったカレンダーをレンダリングするところから</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
---------------------------------------------------------------
 カレンダー表示
 1．現在の日時所得
 2．指定年指定月の１日は何曜日かを得る。
*/</span>
$firstday = <span style="color: #0066CC;">date</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;w&quot;</span>, mktime<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,$month,<span style="color: #cc66cc;">1</span>,$year<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// 3．１日になるまで空白のセルを作成。</span>
<span style="color: #808080; font-style: italic;">// 4．１日から順にセルに埋める。</span>
<span style="color: #808080; font-style: italic;">// 5. 末日以降の空白のセルを作成す。</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ojigotts-app.zono.cc/2010/01/07/calender-adobeair/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
