<?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>parpue.net &#187; Flash</title>
	<atom:link href="http://parpue.net/tag/flash/feed" rel="self" type="application/rss+xml" />
	<link>http://parpue.net</link>
	<description>Flash, Flex, デザイン等自分の好きなことを好きなようにやってます</description>
	<lastBuildDate>Wed, 12 Aug 2009 17:46:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PaperVision3Dでタグクラウド</title>
		<link>http://parpue.net/web/667</link>
		<comments>http://parpue.net/web/667#comments</comments>
		<pubDate>Thu, 30 Apr 2009 19:12:32 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[PaperVision3D]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=667</guid>
		<description><![CDATA[				
				最近、３Dのタグクラウドよくみるので、
				何となく作ってみた・・・けど、これ目立つけど見づらいような。。。
				↓
				
				
				あの雲まで飛べる！
				XMLでタグ情報を読み込んで、
				タグの内容から、Text3Dオブジェクトを生成して、
				PaperVision3Dのシーンに参加させています。
				あとはTweenerでくるくると。
				読み込んでいるタグクラウド用のXMLは こちら
				コード
				&#62;&#62;text
				ACTIONSCRIPT:
				
				
				
				package &#123;
				&#160; &#160; import caurina.transitions.Tweener;
				&#160; &#160; 
				&#160; &#160; import flash.display.*;
				&#160; &#160; import flash.events.*;
				&#160; &#160; import flash.net.URLLoader;
				&#160; &#160; import flash.net.URLRequest;
				&#160; &#160; import flash.text.TextField;
				&#160; &#160; 
				&#160; &#160; import org.papervision3d.cameras.*;
				&#160; &#160; import org.papervision3d.materials.*;
				&#160; &#160; import org.papervision3d.materials.special.Letter3DMaterial;
				&#160; &#160; import org.papervision3d.objects.*;
				&#160; &#160; import org.papervision3d.render.BasicRenderEngine;
				&#160; &#160; import org.papervision3d.scenes.*;
				&#160; &#160; import org.papervision3d.typography.fonts.HelveticaBold;
				&#160; &#160; import org.papervision3d.view.Viewport3D;
				&#160; &#160; &#91;SWF&#40;backgroundColor=0x000000&#41;&#93;
				&#160; &#160; 
				&#160; &#160; public  [...]]]></description>
			<content:encoded><![CDATA[				<p><img src="http://parpue.net/wp-content/uploads/2009/05/e38394e382afe38381e383a3-4.png" alt="e38394e382afe38381e383a3-4" title="e38394e382afe38381e383a3-4" width="423" height="245" class="alignnone size-full wp-image-668" /></p>
				<p>最近、３Dのタグクラウドよくみるので、<br />
				何となく作ってみた・・・けど、これ目立つけど見づらいような。。。</p>
				<p>↓<br />
				<span id="more-667"></span></p>
				<p><object width="500" height="463" data="http://parpue.net/wp-content/uploads/2009/05/pv3dcloud2.swf" type="application/x-shockwave-flash"><param name="id" value="pv3dcloud2" /><param name="quality" value="high" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://parpue.net/wp-content/uploads/2009/05/pv3dcloud2.swf"/><param name="flashvars" value="xmlpath=http://parpue.net/wp-content/uploads/2009/05/test.xml"/><param name="width" value="500"/></object><br />
				あの雲まで飛べる！</p>
				<p>XMLでタグ情報を読み込んで、<br />
				タグの内容から、Text3Dオブジェクトを生成して、<br />
				PaperVision3Dのシーンに参加させています。</p>
				<p>あとはTweenerでくるくると。</p>
				<p>読み込んでいるタグクラウド用のXMLは <a href='http://parpue.net/wp-content/uploads/2009/05/test.xml' target="_blank">こちら</a></p>
				<p>コード</p>
				<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-2">
				<div class="actionscript">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">package <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> caurina.<span style="color: #006600;">transitions</span>.<span style="color: #006600;">Tweener</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.*;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.*;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLLoader</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequest</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">cameras</span>.*;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">materials</span>.*;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">materials</span>.<span style="color: #006600;">special</span>.<span style="color: #006600;">Letter3DMaterial</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">objects</span>.*;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">render</span>.<span style="color: #006600;">BasicRenderEngine</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">scenes</span>.*;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">typography</span>.<span style="color: #006600;">fonts</span>.<span style="color: #006600;">HelveticaBold</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">Viewport3D</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #66cc66;">&#91;</span>SWF<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">backgroundColor</span>=0x000000<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Pv3DCloud <span style="color: #0066CC;">extends</span> Sprite</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> scene&nbsp; &nbsp; &nbsp;: Scene3D;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">camera</span>&nbsp; &nbsp; : Camera3D;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> rootNode&nbsp; : DisplayObject3D;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> viewport:Viewport3D;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> renderer:BasicRenderEngine;</li>
				<li style="color:#26536A;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> loader:URLLoader;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">text</span>:<span style="color: #0066CC;">TextField</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> tags:<span style="color: #0066CC;">Array</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> bases:<span style="color: #0066CC;">Array</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> cameraPosition:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">3300</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> radius:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">1000</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Pv3DCloud<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">frameRate</span> = <span style="color: #cc66cc;color:#800000;">60</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">quality</span>&nbsp; &nbsp;= <span style="color: #ff0000;">"MEDIUM"</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">scaleMode</span> = <span style="color: #ff0000;">"noScale"</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">align</span> = StageAlign.<span style="color: #006600;">TOP_LEFT</span>;</li>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">url</span>:URLRequest = <span style="color: #000000; font-weight: bold;">null</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> flashvars:<span style="color: #0066CC;">Object</span> = LoaderInfo<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">root</span>.<span style="color: #006600;">loaderInfo</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">parameters</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> xmlpath:<span style="color: #0066CC;">String</span> = <span style="color: #66cc66;">&#40;</span>flashvars<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">"xmlpath"</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> ?&nbsp; <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>flashvars<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">"xmlpath"</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #ff0000;">"test.xml"</span> ;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">url</span> = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>xmlpath<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loader = <span style="color: #000000; font-weight: bold;">new</span> URLLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, onLoadHandler<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>IOErrorEvent.<span style="color: #006600;">IO_ERROR</span>, onIOErrorHandler<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>SecurityErrorEvent.<span style="color: #006600;">SECURITY_ERROR</span>, onSecurityErrorHandler<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onSecurityErrorHandler<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"sec error"</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onLoadHandler<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"onload"</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">try</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> xmlData:<span style="color: #0066CC;">XML</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">XML</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">loader</span>.<span style="color: #0066CC;">data</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tags = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bases = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span>;</li>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; viewport = <span style="color: #000000; font-weight: bold;">new</span> Viewport3D<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span> , <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageHeight</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>viewport<span style="color: #66cc66;">&#41;</span>;<span style="color: #808080; font-style: italic;">//viewportを表示ツリーに追加</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; renderer = <span style="color: #000000; font-weight: bold;">new</span> BasicRenderEngine<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scene = <span style="color: #000000; font-weight: bold;">new</span> Scene3D<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">camera</span> = <span style="color: #000000; font-weight: bold;">new</span> Camera3D<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//rootNode生成</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rootNode = <span style="color: #000000; font-weight: bold;">new</span> DisplayObject3D<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;scene.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span> rootNode <span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> letterMaterial:Letter3DMaterial = <span style="color: #000000; font-weight: bold;">new</span> Letter3DMaterial;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; letterMaterial.<span style="color: #006600;">fillColor</span> = 0xFFFFFF;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; letterMaterial.<span style="color: #006600;">oneSide</span> = <span style="color: #000000; font-weight: bold;">false</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; letterMaterial.<span style="color: #006600;">interactive</span> = <span style="color: #000000; font-weight: bold;">true</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> tagXml:XMLList = xmlData.<span style="color: #006600;">tags</span>.<span style="color: #006600;">tag</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> oneDegree:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">360</span> / tagXml.<span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> each<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> tag <span style="color: #b1b100;">in</span> xmlData.<span style="color: #006600;">tags</span>.<span style="color: #006600;">tag</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> tag3D:Tag3D = <span style="color: #000000; font-weight: bold;">new</span> Tag3D<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>tag<span style="color: #66cc66;">&#41;</span> , <span style="color: #000000; font-weight: bold;">new</span> HelveticaBold<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> , letterMaterial<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">degree</span> = oneDegree * i;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//tag3D.scale = 1 + Number(tag.@level) * 3 /10;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>tag.@<span style="color: #0066CC;">level</span> == <span style="color: #ff0000;">"1"</span><span style="color: #66cc66;">&#41;</span> tag3D.<span style="color: #006600;">scale</span> = <span style="color: #cc66cc;color:#800000;">3</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>tag.@<span style="color: #0066CC;">level</span> == <span style="color: #ff0000;">"2"</span><span style="color: #66cc66;">&#41;</span> tag3D.<span style="color: #006600;">scale</span> = <span style="color: #cc66cc;color:#800000;">1</span>.<span style="color: #cc66cc;color:#800000;">75</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">rotateSpeed</span> = <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;color:#800000;">5</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #cc66cc;color:#800000;">1</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">y</span> = <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #66cc66;">&#40;</span>radius*<span style="color: #cc66cc;color:#800000;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>-radius;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">z</span> = radius*<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">sin</span><span style="color: #66cc66;">&#40;</span>tag3D.<span style="color: #006600;">degree</span> * <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">PI</span> / <span style="color: #cc66cc;color:#800000;">180</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">x</span> = radius*<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">cos</span><span style="color: #66cc66;">&#40;</span>tag3D.<span style="color: #006600;">degree</span> * <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">PI</span> / <span style="color: #cc66cc;color:#800000;">180</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tweener.<span style="color: #006600;">addTween</span><span style="color: #66cc66;">&#40;</span>tag3D, <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">time</span>:tag3D.<span style="color: #006600;">rotateSpeed</span>, rotationX:<span style="color: #cc66cc;color:#800000;">360</span>, onComplete:onTweenHandler, onCompleteParams:<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rootNode.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>tag3D<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tags.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>tag3D<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, loop<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">camera</span>.<span style="color: #006600;">z</span> = -<span style="color: #0066CC;">this</span>.<span style="color: #006600;">cameraPosition</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #0066CC;">catch</span><span style="color: #66cc66;">&#40;</span>err:<span style="color: #0066CC;">Error</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"error"</span> + err.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onIOErrorHandler<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"io error"</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onTweenHandler<span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> tag3D:Tag3D = tags<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">rotationX</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">rotationY</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> XorY = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;color:#800000;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>XorY<span style="color: #66cc66;">&#41;</span> Tweener.<span style="color: #006600;">addTween</span><span style="color: #66cc66;">&#40;</span>tag3D, <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">time</span>:tag3D.<span style="color: #006600;">rotateSpeed</span>, rotationX:<span style="color: #cc66cc;color:#800000;">360</span>, onComplete:onTweenHandler, onCompleteParams:<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> Tweener.<span style="color: #006600;">addTween</span><span style="color: #66cc66;">&#40;</span>tag3D, <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">time</span>:tag3D.<span style="color: #006600;">rotateSpeed</span>, rotationY:<span style="color: #cc66cc;color:#800000;">360</span>, onComplete:onTweenHandler, onCompleteParams:<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> loop<span style="color: #66cc66;">&#40;</span> event:Event <span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: #b1b100;">for</span> each<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> tag3D:Tag3D <span style="color: #b1b100;">in</span> tags<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">degree</span> += <span style="color: #cc66cc;color:#800000;">3</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">z</span> = radius*<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">sin</span><span style="color: #66cc66;">&#40;</span>tag3D.<span style="color: #006600;">degree</span> * <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">PI</span> / <span style="color: #cc66cc;color:#800000;">180</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tag3D.<span style="color: #006600;">x</span> = radius*<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">cos</span><span style="color: #66cc66;">&#40;</span>tag3D.<span style="color: #006600;">degree</span> * <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">PI</span> / <span style="color: #cc66cc;color:#800000;">180</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;renderer.<span style="color: #006600;">renderScene</span><span style="color: #66cc66;">&#40;</span>scene, <span style="color: #0066CC;">camera</span>, viewport<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/667/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash,Degrafaで簡単に波を表現 (2)</title>
		<link>http://parpue.net/web/645</link>
		<comments>http://parpue.net/web/645#comments</comments>
		<pubDate>Tue, 14 Apr 2009 18:03:58 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[Degrafa]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=645</guid>
		<description><![CDATA[				Degrafaのベジェ曲線描画に、さらに塗りを指定して、
				もうちょっと見栄えのいい波にしてみました。
				
				
				今回も、重ねた波の分だけ増えただけで、
				コードはMXMLを除いて、１３行といっても、
				MXMLでLineToとかしちゃってるわけなので、ちょっとだけ複雑…。
				塗り（ fill ）、線（strokes）をまず定義して、
				今度は３次ベジェ曲線オブジェクトのCubicBezierではなく、
				波を描くためのパス Path を用意します。
				Pathに、CubicBezierTo,LineToでラインの情報を指示して、
				塗りの指定をして、波を描画します。
				↓波一つ分のパス
				&#62;&#62;text
				XML:
				
				
				
				&#60;Path id="bezier4" x="{bigWaveWidth/2}" y="{height/2-10}" fill="{bigWaveFill}"&#62;
				&#160; &#160; &#60;segments&#62;
				&#160; &#160; &#160; &#160; &#160;&#60;MoveTo x="0" y="0" /&#62;
				&#160; &#160; &#160; &#160; &#160;&#60;CubicBezierTo x="{bigWaveWidth}" y="0" cx="{bigWaveWidth/2}" cy="{-waveHeight}" cx1="{bigWaveWidth/2}" cy1="{waveHeight}" /&#62;
				&#160; &#160; &#160; &#160; &#160;&#60;LineTo x="{bigWaveWidth}" y="{height}"/&#62;
				&#160; &#160; &#160; &#160; &#160;&#60;LineTo x="{0}" y="{height}"/&#62;
				&#160; &#160; &#160; &#160; &#160;&#60;LineTo x="{0}" y="{0}"/&#62;
				&#160; &#160; &#160;&#60;/segments&#62;
				&#60;/Path&#62; 
				
				
				
				
				これを重ねて、前回の記事と同じようにEnterFrameイベントで動かします。
				MXMLでお絵かきしてるようでおもしろいですね。
				SVGインポートして描画したりもできるんで、
				イラレとかで作ってやったほうがはやいかもしれないですね(^-^;;
				今度は、Degrafaでコンポーネントスキンとかにも挑戦してみようかすら。
				以下コードです。
				&#62;&#62;text
				XML:
				
				
				
				&#60;?xml version="1.0" encoding="utf-8"?&#62;
				&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="http://www.degrafa.com/2007"  [...]]]></description>
			<content:encoded><![CDATA[				<p>Degrafaのベジェ曲線描画に、さらに塗りを指定して、<br />
				もうちょっと見栄えのいい波にしてみました。</p>
				<p><span id="more-645"></span></p>
				<p><object width="400" height="220" data="http://parpue.net/wp-content/uploads/2009/04/degrafabezier2.swf" type="application/x-shockwave-flash"><param name="id" value="degrafabezier" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://parpue.net/wp-content/uploads/2009/04/degrafabezier2.swf"/></object></p>
				<p>今回も、重ねた波の分だけ増えただけで、<br />
				コードはMXMLを除いて、１３行といっても、<br />
				MXMLでLineToとかしちゃってるわけなので、ちょっとだけ複雑…。</p>
				<p>塗り（ fill ）、線（strokes）をまず定義して、<br />
				今度は３次ベジェ曲線オブジェクトのCubicBezierではなく、<br />
				波を描くためのパス Path を用意します。</p>
				<p>Pathに、CubicBezierTo,LineToでラインの情報を指示して、<br />
				塗りの指定をして、波を描画します。</p>
				<p>↓波一つ分のパス</p>
				<div class="igBar"><span id="lxml-5"><a href="#" onclick="javascript:showPlainTxt('xml-5'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-5">
				<div class="xml">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Path</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bezier4"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{bigWaveWidth/2}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height/2-10}"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{bigWaveFill}"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;MoveTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;CubicBezierTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{bigWaveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">cx</span>=<span style="color: #ff0000;">"{bigWaveWidth/2}"</span> <span style="color: #000066;">cy</span>=<span style="color: #ff0000;">"{-waveHeight}"</span> cx1=<span style="color: #ff0000;">"{bigWaveWidth/2}"</span> cy1=<span style="color: #ff0000;">"{waveHeight}"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{bigWaveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{0}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Path<span style="font-weight: bold; color: black;">&gt;</span></span></span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>これを重ねて、前回の記事と同じようにEnterFrameイベントで動かします。<br />
				MXMLでお絵かきしてるようでおもしろいですね。</p>
				<p>SVGインポートして描画したりもできるんで、<br />
				イラレとかで作ってやったほうがはやいかもしれないですね(^-^;;</p>
				<p>今度は、Degrafaでコンポーネントスキンとかにも挑戦してみようかすら。</p>
				<p>以下コードです。</p>
				<div class="igBar"><span id="lxml-6"><a href="#" onclick="javascript:showPlainTxt('xml-6'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-6">
				<div class="xml">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Application xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span> <span style="color: #000066;">layout</span>=<span style="color: #ff0000;">"absolute"</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">"http://www.degrafa.com/2007"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"400"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"220"</span> <span style="color: #000066;">backgroundColor</span>=<span style="color: #ff0000;">"#FFFFFF"</span> <span style="color: #000066;">enterFrame</span>=<span style="color: #ff0000;">"onEnterHandler(event)"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; [Bindable]private var waveHeight:Number = 30;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; [Bindable]private var waveWidth:Number = 410;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; [Bindable]private var bigWaveWidth:Number = 600;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; private function onEnterHandler(event:Event):void{</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; if(this.bezier1.x &lt;-this.waveWidth) this.bezier1.x = this.bezier2.x + waveWidth;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; if(this.bezier2.x &lt;-this.waveWidth) this.bezier2.x = this.bezier1.x + waveWidth;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; this.bezier1.x -= 10;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; this.bezier2.x -= 10;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; if(this.bezier3.x &lt;-this.bigWaveWidth) this.bezier3.x = this.bezier4.x + bigWaveWidth;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; if(this.bezier4.x &lt;-this.bigWaveWidth) this.bezier4.x = this.bezier3.x + bigWaveWidth;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; this.bezier3.x -= 5;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; this.bezier4.x -= 5;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; }</li>
				<li style="color:#26536A;">&nbsp; &nbsp; ]]&gt;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Surface<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- 塗りの指定 --&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fills<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LinearGradientFill</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"MainFill"</span> <span style="color: #000066;">angle</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GradientStop</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.7"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFFFFF"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GradientStop</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.7"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFDDDD"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/LinearGradientFill<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LinearGradientFill</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"smallWaveFill1"</span> <span style="color: #000066;">angle</span>=<span style="color: #ff0000;">"0"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GradientStop</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.5"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FF6666"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GradientStop</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.5"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFCC00"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/LinearGradientFill<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LinearGradientFill</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"smallWaveFill2"</span> <span style="color: #000066;">angle</span>=<span style="color: #ff0000;">"0"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GradientStop</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.5"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFCC00"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GradientStop</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.5"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FF6666"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/LinearGradientFill<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;SolidFill</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bigWaveFill"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#CCCC00"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.5"</span><span style="font-weight: bold; color: black;">/&gt;</span></span>&nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fills<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- 線の指定 --&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;strokes<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;SolidStroke</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#666688"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.3"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"BasicStroke"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/strokes<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--表示するオブジェクト--&gt;</span></span>&nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GeometryGroup<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;RegularRectangle</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"rect"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"{width-2}"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"{height-2}"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{MainFill}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{BasicStroke}"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GeometryComposition</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"beziers"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Path</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bezier3"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{-bigWaveWidth/2}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height/2-10}"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{bigWaveFill}"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;MoveTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;CubicBezierTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{bigWaveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">cx</span>=<span style="color: #ff0000;">"{bigWaveWidth/2}"</span> <span style="color: #000066;">cy</span>=<span style="color: #ff0000;">"{-waveHeight}"</span> cx1=<span style="color: #ff0000;">"{bigWaveWidth/2}"</span> cy1=<span style="color: #ff0000;">"{waveHeight}"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{bigWaveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{0}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Path<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Path</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bezier4"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{bigWaveWidth/2}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height/2-10}"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{bigWaveFill}"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;MoveTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;CubicBezierTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{bigWaveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">cx</span>=<span style="color: #ff0000;">"{bigWaveWidth/2}"</span> <span style="color: #000066;">cy</span>=<span style="color: #ff0000;">"{-waveHeight}"</span> cx1=<span style="color: #ff0000;">"{bigWaveWidth/2}"</span> cy1=<span style="color: #ff0000;">"{waveHeight}"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{bigWaveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{0}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Path<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Path</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bezier1"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{-waveWidth/2}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height/2}"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{smallWaveFill1}"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;MoveTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;CubicBezierTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{waveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">cx</span>=<span style="color: #ff0000;">"{waveWidth/2}"</span> <span style="color: #000066;">cy</span>=<span style="color: #ff0000;">"{-waveHeight}"</span> cx1=<span style="color: #ff0000;">"{waveWidth/2}"</span> cy1=<span style="color: #ff0000;">"{waveHeight}"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{waveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{0}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Path<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Path</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bezier2"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{waveWidth/2}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height/2}"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{smallWaveFill2}"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;MoveTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;CubicBezierTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{waveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">cx</span>=<span style="color: #ff0000;">"{waveWidth/2}"</span> <span style="color: #000066;">cy</span>=<span style="color: #ff0000;">"{-waveHeight}"</span> cx1=<span style="color: #ff0000;">"{waveWidth/2}"</span> cy1=<span style="color: #ff0000;">"{waveHeight}"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{waveWidth}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LineTo</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{0}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{0}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/segments<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Path<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/GeometryComposition<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/RegularRectangle<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/GeometryGroup<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Surface<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Application<span style="font-weight: bold; color: black;">&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/645/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash,Degrafaで簡単に波を表現 (1)</title>
		<link>http://parpue.net/web/630</link>
		<comments>http://parpue.net/web/630#comments</comments>
		<pubDate>Tue, 14 Apr 2009 18:02:53 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[Degrafa]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=630</guid>
		<description><![CDATA[				
				FlashグラフィックコンポーネントのDegrafaで引き続き遊んでみた。
				mxmlを除くスクリプト部分はわずか7行で、簡単な波が！
				↓続き
				
				
				前にかいたのと同 [...]]]></description>
			<content:encoded><![CDATA[				<p><img src="http://parpue.net/wp-content/uploads/2009/04/flash_wave.png" alt="flash_wave" title="flash_wave" width="500" height="250" class="alignnone size-full wp-image-632" /></p>
				<p>FlashグラフィックコンポーネントのDegrafaで引き続き遊んでみた。<br />
				mxmlを除くスクリプト部分はわずか7行で、簡単な波が！</p>
				<p>↓続き<br />
				<span id="more-630"></span></p>
				<p><object width="400" height="220" data="http://parpue.net/wp-content/uploads/2009/04/degrafabezier.swf" type="application/x-shockwave-flash"><param name="id" value="degrafabezier" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://parpue.net/wp-content/uploads/2009/04/degrafabezier.swf"/></object></p>
				<p><a href="http://parpue.net/web/347">前にかいたの</a>と同じようなことを<br />
				Degrafaを使用してやってみました。</p>
				<p>Degrafaには３次ベジェ曲線オブジェクトである、CubicBezierがあるので、<br />
				それをMXMLで配置して、色と塗りを指定していきます。<br />
				CubicBezierでベジェ曲線をひくには、<br />
				始点( x0, y0)、終点(x1, y1)、作用点を二つ(cx,cy),(cx1,cy1)を指定します。</p>
				<p>EnterFrameイベントで、作成したベジェ曲線オブジェクトを移動していくと、ナミナミできました。</p>
				<p>次の記事で、Degrafaで塗りのある波もやってみます。<br />
				　　→　<a href="http://parpue.net/web/645">Flash,Degrafaで簡単に波を表現 (2)</a><br />
				関連→　<a href="http://parpue.net/web/432">FlashグラフィックコンポーネントDegrafaを試す</a></p>
				<p>コードは、すごいシンプルです。</p>
				<div class="igBar"><span id="lxml-8"><a href="#" onclick="javascript:showPlainTxt('xml-8'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-8">
				<div class="xml">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Application xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span> <span style="color: #000066;">layout</span>=<span style="color: #ff0000;">"absolute"</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">"http://www.degrafa.com/2007"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"400"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"220"</span> <span style="color: #000066;">backgroundColor</span>=<span style="color: #ff0000;">"#FFFFFF"</span> <span style="color: #000066;">enterFrame</span>=<span style="color: #ff0000;">"onEnterHandler(event)"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; [Bindable]private var waveHeight:Number = 50;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; [Bindable]private var waveWidth:Number = 410; //&gt; width</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; private function onEnterHandler(event:Event):void{</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; if(this.bezier1.x &lt;-this.waveWidth) this.bezier1.x = this.bezier2.x + waveWidth;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; if(this.bezier2.x &lt;-this.waveWidth) this.bezier2.x = this.bezier1.x + waveWidth;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; this.bezier1.x -= 10;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; this.bezier2.x -= 10;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; }</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; ]]&gt;</span></li>
				<li style="color:#26536A;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; </li>
				<li style="color:#26536A;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Surface<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- 塗りの指定 --&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fills<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;LinearGradientFill</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"MainFill"</span> <span style="color: #000066;">angle</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GradientStop</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFFFFF"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GradientStop</span> <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#DDDDFF"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/LinearGradientFill<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fills<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- 線の指定 --&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;strokes<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;SolidStroke</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#666688"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"BasicStroke"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/strokes<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--表示するオブジェクト--&gt;</span></span>&nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GeometryGroup<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;RegularRectangle</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"rect"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"{width-2}"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"{height-2}"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{MainFill}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{BasicStroke}"</span><span style="font-weight: bold; color: black;">&gt;</span></span>&nbsp; &nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;GeometryComposition</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"beziers"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;CubicBezier</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bezier1"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{-waveWidth/2}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height/2}"</span> x0=<span style="color: #ff0000;">"0"</span> x1=<span style="color: #ff0000;">"{waveWidth}"</span> y0=<span style="color: #ff0000;">"0"</span> y1=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">cx</span>=<span style="color: #ff0000;">"{waveWidth/2}"</span> <span style="color: #000066;">cy</span>=<span style="color: #ff0000;">"{-waveHeight}"</span> cx1=<span style="color: #ff0000;">"{waveWidth/2}"</span> cy1=<span style="color: #ff0000;">"{waveHeight}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{BasicStroke}"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;CubicBezier</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"bezier2"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"{waveWidth/2}"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"{height/2}"</span> x0=<span style="color: #ff0000;">"0"</span> x1=<span style="color: #ff0000;">"{waveWidth}"</span> y0=<span style="color: #ff0000;">"0"</span> y1=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">cx</span>=<span style="color: #ff0000;">"{waveWidth/2}"</span> <span style="color: #000066;">cy</span>=<span style="color: #ff0000;">"{-waveHeight}"</span> cx1=<span style="color: #ff0000;">"{waveWidth/2}"</span> cy1=<span style="color: #ff0000;">"{waveHeight}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{BasicStroke}"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/GeometryComposition<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/RegularRectangle<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/GeometryGroup<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Surface<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Application<span style="font-weight: bold; color: black;">&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/630/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PaperVision3Dで３Dダンボー</title>
		<link>http://parpue.net/web/601</link>
		<comments>http://parpue.net/web/601#comments</comments>
		<pubDate>Sat, 11 Apr 2009 04:16:43 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[PaperVision3D]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[Papervision3D]]></category>
		<category><![CDATA[ダンボー]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=601</guid>
		<description><![CDATA[				
				これも誰かやってそうだけど、簡単そうな題材だったから・・・
				
				例によってFlashPlayer１０以上で確認しています。
				■ ダンボーDemo
				■ Demo2 ぬるぬる動 [...]]]></description>
			<content:encoded><![CDATA[				<p><img src="http://parpue.net/wp-content/uploads/2009/04/danboo.png" alt="danboo" title="danboo" width="500" height="300" class="alignnone size-full wp-image-600" /></p>
				<p>これも誰かやってそうだけど、簡単そうな題材だったから・・・</p>
				<p><span id="more-601"></span></p>
				<p>例によってFlashPlayer１０以上で確認しています。</p>
				<p>■ <a href="http://parpue.net/wp-content/uploads/2009/04/danbo3dproj.swf" rel="shadowbox;height=500;width=500">ダンボーDemo</a></p>
				<p>■ <a href='http://parpue.net/wp-content/uploads/2009/04/danbo3dproj1.swf' rel="shadowbox;height=500;width=500">Demo2 ぬるぬる動かしてみた</a></p>
				<p> <a href='http://parpue.net/wp-content/uploads/2009/04/danbo3dproj2.swf' rel="shadowbox;height=500;width=500"><img src="http://parpue.net/wp-content/uploads/2009/04/danbobobo.png" alt="danbobobo" title="danbobobo" width="450" height="333" class="alignnone size-full wp-image-615" /><br />
				■Demo3 カメラもマウスに追従、重いかも</a></p>
				<p>PaperVision3D、手軽でおもしろいなー</p>
				<p><br/><br/><br/><br/><br/><br />
				<img src="http://parpue.net/wp-content/uploads/2009/04/danbo_measure.jpg" alt="danbo_measure" title="danbo_measure" width="400" height="300" class="alignnone size-full wp-image-619" /><br />
				きっちりと計測しました！</p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/601/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PaperVision3Dで引き続き遊んでみる</title>
		<link>http://parpue.net/web/552</link>
		<comments>http://parpue.net/web/552#comments</comments>
		<pubDate>Tue, 07 Apr 2009 17:59:09 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=552</guid>
		<description><![CDATA[				謎のエコ生物。
				
				*追記　FlashPlayer9だとなんかおかしい。
				続き、重いかも
				↓
				
				
				
				習作でした。
				おもしろかったけど・・いった [...]]]></description>
			<content:encoded><![CDATA[				<p>謎のエコ生物。<br />
				<a href="http://parpue.net/wp-content/uploads/2009/04/pic4.png" rel="shadowbox[post-552];player=img;"><img src="http://parpue.net/wp-content/uploads/2009/04/pic4.png" alt="pic4" title="pic4" width="441" height="201" class="alignnone size-full wp-image-553" /></a><br />
				*追記　FlashPlayer9だとなんかおかしい。</p>
				<p>続き、重いかも<br />
				↓<br />
				<span id="more-552"></span></p>
				<div style="background-color:#000000;width:500px;height:500px;margin-left:50px;border:solid 1px">
				<object width="500" height="500" bgcolor="#000000" data="http://parpue.net/wp-content/uploads/2009/04/ecoemon.swf" type="application/x-shockwave-flash"><param name="id" value="ecoemon" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://parpue.net/wp-content/uploads/2009/04/ecoemon.swf"/></object></div>
				<p>習作でした。<br />
				おもしろかったけど・・いったい何をやっていたんだ・・・。寝よう。</p>
				<p>　地球のテクスチャデータ<br />
				　→　<a href="http://www.oera.net/How2/TextureMaps2.htm" target="_blank">http://www.oera.net/How2/TextureMaps2.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/552/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PaperVision3D Cubeに展開図を貼り付ける</title>
		<link>http://parpue.net/web/502</link>
		<comments>http://parpue.net/web/502#comments</comments>
		<pubDate>Tue, 07 Apr 2009 02:07:18 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=502</guid>
		<description><![CDATA[				適当に作り始めた展開図、、、意外と苦戦してしまった。
				
				
				
				papervision3d思いだしがてら展開図作って貼り付けてみました。
				
				せっかく３D効果なので、影効 [...]]]></description>
			<content:encoded><![CDATA[				<p>適当に作り始めた展開図、、、意外と苦戦してしまった。</p>
				<p><img src="http://parpue.net/wp-content/uploads/2009/04/cube.png" alt="cube" title="cube" width="367" height="222" class="alignnone size-full wp-image-525" /></p>
				<p><a href="http://parpue.net/wp-content/uploads/2009/04/tenkai.png" rel="shadowbox[post-502];player=img;"><img src="http://parpue.net/wp-content/uploads/2009/04/tenkai-300x225.png" alt="tenkai" title="tenkai" width="300" height="225" class="alignnone size-medium wp-image-504" /></a></p>
				<p><span id="more-502"></span></p>
				<p>papervision3d思いだしがてら展開図作って貼り付けてみました。</p>
				<div style="background-color:#000000;width:500px;height:360px;margin-left:50px;border:solid 1px"><object width="500" height="350" bgcolor="#000000" data="http://parpue.net/wp-content/uploads/2009/04/tetoris3d.swf" type="application/x-shockwave-flash"><param name="id" value="tetoris3d" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://parpue.net/wp-content/uploads/2009/04/tetoris3d.swf"/></object></div>
				<p>せっかく３D効果なので、影効果もつけてみようかと思ったけどうまくいきませんでした。<br />
				どうやらCubeの各面に、別々のMaterialをつけると駄目なようです。</p>
				<p>と思ったら、同じように悩んでる人を発見<br />
				　→<a href="http://blog.img8.com/archives/2008/03/003664.html" target="_blank">APEIROPHOBIA:ShadedMaterialメモ</a></p>
				<p>面に別々のマテリアルを割り当て↓</p>
				<div class="igBar"><span id="lactionscript-10"><a href="#" onclick="javascript:showPlainTxt('actionscript-10'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-10">
				<div class="actionscript">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #000000; font-weight: bold;">var</span> mList:MaterialsList = <span style="color: #000000; font-weight: bold;">new</span> MaterialsList<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> texture_top:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">300</span>,<span style="color: #cc66cc;color:#800000;">300</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; texture_top.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> top_img<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;<span style="color: #808080; font-style: italic;">//var mat_top:ShadedMaterial = new ShadedMaterial( new BitmapMaterial(texture_top, true) , sdr);&nbsp;&nbsp;&nbsp;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;<span style="color: #000000; font-weight: bold;">var</span> mat_top:BitmapMaterial = <span style="color: #000000; font-weight: bold;">new</span> BitmapMaterial<span style="color: #66cc66;">&#40;</span>texture_top, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; mat_top.<span style="color: #006600;">oneSide</span> = <span style="color: #000000; font-weight: bold;">false</span>;&nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> texture_bottom:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">300</span>,<span style="color: #cc66cc;color:#800000;">300</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; texture_bottom.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> bottom_img<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;<span style="color: #808080; font-style: italic;">//var mat_bottom:ShadedMaterial = new ShadedMaterial( new BitmapMaterial(texture_bottom, true) , sdr);</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;<span style="color: #000000; font-weight: bold;">var</span> mat_bottom:BitmapMaterial = <span style="color: #000000; font-weight: bold;">new</span> BitmapMaterial<span style="color: #66cc66;">&#40;</span>texture_bottom, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; mat_bottom.<span style="color: #006600;">oneSide</span> = <span style="color: #000000; font-weight: bold;">false</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> texture_left:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">300</span>,<span style="color: #cc66cc;color:#800000;">300</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; texture_left.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> left_img<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;<span style="color: #808080; font-style: italic;">//var mat_left:ShadedMaterial = new ShadedMaterial( new BitmapMaterial(texture_left, true) , sdr);&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;<span style="color: #000000; font-weight: bold;">var</span> mat_left:BitmapMaterial = <span style="color: #000000; font-weight: bold;">new</span> BitmapMaterial<span style="color: #66cc66;">&#40;</span>texture_left, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; mat_left.<span style="color: #006600;">oneSide</span> = <span style="color: #000000; font-weight: bold;">false</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> texture_right:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">300</span>,<span style="color: #cc66cc;color:#800000;">300</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; texture_right.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> right_img<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;<span style="color: #808080; font-style: italic;">//var mat_right:ShadedMaterial = new ShadedMaterial( new BitmapMaterial(texture_right, true) , sdr);&nbsp;&nbsp;&nbsp;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;<span style="color: #000000; font-weight: bold;">var</span> mat_right:BitmapMaterial = <span style="color: #000000; font-weight: bold;">new</span> BitmapMaterial<span style="color: #66cc66;">&#40;</span>texture_right, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; mat_right.<span style="color: #006600;">oneSide</span> = <span style="color: #000000; font-weight: bold;">false</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> texture_back:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">300</span>,<span style="color: #cc66cc;color:#800000;">300</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; texture_back.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> back_img<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;<span style="color: #808080; font-style: italic;">//var mat_back:ShadedMaterial = new ShadedMaterial( new BitmapMaterial(texture_back, true) , sdr);</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;<span style="color: #000000; font-weight: bold;">var</span> mat_back:BitmapMaterial = <span style="color: #000000; font-weight: bold;">new</span> BitmapMaterial<span style="color: #66cc66;">&#40;</span>texture_back, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; mat_back.<span style="color: #006600;">oneSide</span> = <span style="color: #000000; font-weight: bold;">false</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> texture_front:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">300</span>,<span style="color: #cc66cc;color:#800000;">300</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; texture_front.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> front_img<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;<span style="color: #808080; font-style: italic;">//var mat_front:ShadedMaterial = new ShadedMaterial( new BitmapMaterial(texture_front, true) , sdr);&nbsp;&nbsp;&nbsp;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;<span style="color: #000000; font-weight: bold;">var</span> mat_front:BitmapMaterial = <span style="color: #000000; font-weight: bold;">new</span> BitmapMaterial<span style="color: #66cc66;">&#40;</span>texture_front, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; mat_front.<span style="color: #006600;">oneSide</span> = <span style="color: #000000; font-weight: bold;">false</span>; </li>
				</ol>
				</div>
				</div>
				</div>
				<p>別々にShadedMaterialを指定すると動きが微妙になります。<br />
				うーん・・仕様なのか・・？</p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/502/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex AdvancedDataGrid 矢印キーでセル移動して編集</title>
		<link>http://parpue.net/web/492</link>
		<comments>http://parpue.net/web/492#comments</comments>
		<pubDate>Thu, 02 Apr 2009 16:30:42 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[Flex3]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=492</guid>
		<description><![CDATA[				
				セル選択後と矢印キーで移動
				
				NumericStepeprで編集して移動
				(デフォルトでは矢印キーで数字変えちゃうのでそっちは殺してます)
				
				DataGrid内のセルを矢印キーで選択して編集、というのをやりたくて、
				調べて下記リンクのサンプルを見つけたんだけど、Flex 3ではこのままでは使えませんでした。
				　→　スプレッドシートのように単一セルを選択、編集できるデータグリッド
				もうちょっと調べてみたところ、
				DataGridColumn, AdvancedDataGridColumnのitemRenderer, itemEditorプロパティに、
				自作のコンポーネントを割り当てればできそう。
				 → http://livedocs.adobe.com/flex/3_jp/html/help.html?content=cellrenderer_4.html
				 → http://www.necst.co.jp/product/ibiz/column/flex/chap17.html
				というわけで、itemEditorにTextInputを継承した、TextInputRendererを割り当てて、
				カーソルキーイベントを拾うようにして、移動可能とさせます。
				GridTest.mxml
				&#62;&#62;text
				XML:
				
				
				
				&#60;?xml version="1.0" encoding="utf-8"?&#62;
				&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="502" height="220"&#62;
				&#160; &#160; &#60;mx:Script&#62;
				&#160; &#160; &#160; &#160; &#60;![CDATA[
				&#160; &#160; &#160; &#160; &#160; &#160; import mx.collections.ArrayCollection;
				&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 
				&#160; &#160; &#160; &#160; &#160; &#160; [Bindable]
				&#160; &#160; &#160; &#160; &#160; &#160; private var dp_flat:ArrayCollection = new ArrayCollection([
				&#160; &#160; &#160;  [...]]]></description>
			<content:encoded><![CDATA[				<p><object width="502" height="220" data="http://parpue.net/wp-content/uploads/2009/04/gridtest.swf" type="application/x-shockwave-flash"><param name="id" value="GridTest" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://parpue.net/wp-content/uploads/2009/04/gridtest.swf"/></object><br />
				セル選択後と矢印キーで移動</p>
				<p><object width="502" height="220" data="http://parpue.net/wp-content/uploads/2009/04/gridtest2.swf" type="application/x-shockwave-flash"><param name="id" value="GridTest2" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://parpue.net/wp-content/uploads/2009/04/gridtest2.swf"/></object><br />
				NumericStepeprで編集して移動<br />
				(デフォルトでは矢印キーで数字変えちゃうのでそっちは殺してます)</p>
				<p><span id="more-492"></span></p>
				<p>DataGrid内のセルを矢印キーで選択して編集、というのをやりたくて、<br />
				調べて下記リンクのサンプルを見つけたんだけど、Flex 3ではこのままでは使えませんでした。</p>
				<p>　→　<a href="http://www.geocities.jp/takuji_kawata/flexsamples/singlecellselect_datagrid_sample/index.htm" target="_blank">スプレッドシートのように単一セルを選択、編集できるデータグリッド</a></p>
				<p>もうちょっと調べてみたところ、<br />
				DataGridColumn, AdvancedDataGridColumnのitemRenderer, itemEditorプロパティに、<br />
				自作のコンポーネントを割り当てればできそう。<br />
				 → <a href="http://livedocs.adobe.com/flex/3_jp/html/help.html?content=cellrenderer_4.html" target="_blank">http://livedocs.adobe.com/flex/3_jp/html/help.html?content=cellrenderer_4.html</a><br />
				 → <a href="http://www.necst.co.jp/product/ibiz/column/flex/chap17.html" target="_blank">http://www.necst.co.jp/product/ibiz/column/flex/chap17.html</a></p>
				<p>というわけで、itemEditorにTextInputを継承した、TextInputRendererを割り当てて、<br />
				カーソルキーイベントを拾うようにして、移動可能とさせます。</p>
				<p>GridTest.mxml</p>
				<div class="igBar"><span id="lxml-13"><a href="#" onclick="javascript:showPlainTxt('xml-13'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-13">
				<div class="xml">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Application xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span> <span style="color: #000066;">layout</span>=<span style="color: #ff0000;">"absolute"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"502"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"220"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import mx.collections.ArrayCollection;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Bindable]</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private var dp_flat:ArrayCollection = new ArrayCollection([</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {col_a:&quot;test_1_1&quot;, col_b:&quot;test_2_1&quot;, col_c:&quot;test_3_1&quot;}, </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {col_a:&quot;test_1_2&quot;, col_b:&quot;test_2_2&quot;, col_c:&quot;test_3_2&quot;}, </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {col_a:&quot;test_1_3&quot;, col_b:&quot;test_2_3&quot;, col_c:&quot;test_3_3&quot;}, </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {col_a:&quot;test_1_4&quot;, col_b:&quot;test_2_4&quot;, col_c:&quot;test_3_4&quot;}, </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {col_a:&quot;test_1_5&quot;, col_b:&quot;test_2_5&quot;, col_c:&quot;test_3_5&quot;} </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]);</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span> <img src='http://parpue.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> anel <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"480"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"204"</span> <span style="color: #000066;">layout</span>=<span style="color: #ff0000;">"absolute"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"AdvancedDataGrid"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:AdvancedDataGrid <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"5"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"5"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"test_adg"</span> <span style="color: #000066;">designViewDataType</span>=<span style="color: #ff0000;">"flat"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"449"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"152"</span> <span style="color: #000066;">dataProvider</span>=<span style="color: #ff0000;">"{dp_flat}"</span> <span style="color: #000066;">editable</span>=<span style="color: #ff0000;">"true"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:columns<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:AdvancedDataGridColumn <span style="color: #000066;">headerText</span>=<span style="color: #ff0000;">"列 1"</span> <span style="color: #000066;">dataField</span>=<span style="color: #ff0000;">"col_a"</span> <span style="color: #000066;">itemEditor</span>=<span style="color: #ff0000;">"renderer.TextRenderer"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:AdvancedDataGridColumn <span style="color: #000066;">headerText</span>=<span style="color: #ff0000;">"列 2"</span> <span style="color: #000066;">dataField</span>=<span style="color: #ff0000;">"col_b"</span> <span style="color: #000066;">itemEditor</span>=<span style="color: #ff0000;">"renderer.TextRenderer"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:AdvancedDataGridColumn <span style="color: #000066;">headerText</span>=<span style="color: #ff0000;">"列 3"</span> <span style="color: #000066;">dataField</span>=<span style="color: #ff0000;">"col_c"</span> <span style="color: #000066;">itemEditor</span>=<span style="color: #ff0000;">"renderer.TextRenderer"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:columns<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:AdvancedDataGrid<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span> <img src='http://parpue.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> anel<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Application<span style="font-weight: bold; color: black;">&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>TextRenderer.mxml</p>
				<div class="igBar"><span id="lxml-14"><a href="#" onclick="javascript:showPlainTxt('xml-14'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-14">
				<div class="xml">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:TextInput xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span> <span style="color: #000066;">keyDown</span>=<span style="color: #ff0000;">"onKeydownHandler(event)"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; import mx.controls.AdvancedDataGrid;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; import mx.controls.dataGridClasses.DataGridListData;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; private function onKeydownHandler(event:KeyboardEvent):void{</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // -&gt; http://livedocs.adobe.com/flex/3_jp/html/help.html?content=cellrenderer_4.html</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var list_data:DataGridListData = DataGridListData(listData);</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var list_owner:AdvancedDataGrid = AdvancedDataGrid(list_data.owner);</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; var row_index:Number =&nbsp; list_data.rowIndex; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var column_index:Number = list_data.columnIndex;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; var changed:Boolean = false;&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(event.keyCode == Keyboard.LEFT){</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(column_index&gt; 0 ) {</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changed = true;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; column_index = column_index - 1;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; }</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; }else if(event.keyCode == Keyboard.DOWN){</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(row_index &lt;list_owner.dataProvider.length - 1 ) {</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changed = true;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; row_index = row_index + 1;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; }else if(event.keyCode == Keyboard.RIGHT){</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(column_index &lt;list_owner.columnCount - 1 ) {</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changed = true;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; column_index = column_index + 1;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else if(event.keyCode == Keyboard.UP){</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(row_index&gt; 0 ) {</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changed = true;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; row_index = row_index - 1;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(changed)list_owner.editedItemPosition = {rowIndex:row_index, columnIndex:column_index};</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; ]]&gt;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:TextInput<span style="font-weight: bold; color: black;">&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/492/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlashグラフィックコンポーネントDegrafaを試す</title>
		<link>http://parpue.net/web/432</link>
		<comments>http://parpue.net/web/432#comments</comments>
		<pubDate>Wed, 25 Mar 2009 14:54:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[Degrafa]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=432</guid>
		<description><![CDATA[				MoonGiftで紹介されていたDegrafaを試してみた。
				
				
				■参考リンク
				→Flash向けのグラフィックスフレームワーク「Degrafa」
				→http://www.degrafa.org/
				
				公式のサンプルたちがおもしろい
				これでFlex標準コンポーネントのスキンも作成できるようです。
				Flexコンポーネント使いつつも我流Flex画面とかもできます。
				ついでに見つけた反射効果のライブラリも使いました
				→Live “reflection” component
				■作ってみたデモ
				
				反射とかやったせいでちょっと重い・・・。オブジェクトの描画は全部ＭＸＭＬだけで行ってます。
				公式のサンプルをいくつか落として、ドキュメントも適当に読んで、
				ちょっと理解した程度ですが、
				MXMLで、線や、円などの描画オブジェクトを配置していき、
				塗りや、線の太さなどもMXMLで定義できるようなものだと思います。
				&#62;&#62;text
				XML:
				
				
				
				&#60;mx:Canvas id="main_canvas" x="5" y="5" width="400" height="258" verticalScrollPolicy="off" horizontalScrollPolicy="off"&#62;
				&#160; &#160; &#160; &#160; 
				&#160; &#160; &#60;degrafa:Surface&#62;
				&#160; &#160; &#160; &#160; &#60;degrafa:fills&#62; 
				
				
				
				
				
				UIComponentを継承しているSurfaceを用意して、
				その上に塗りの定義のfills,線(ストローク)の定義であるstrokes,
				描画オブジェクトGeometryGroupを定義していくことで、描画していく。
				&#62;&#62;text
				XML:
				
				
				
				&#60;degrafa:fills&#62;
				&#160; &#160; &#160; &#160; &#160; &#160; &#60;degrafa:LinearGradientFill id="MainFill" angle="90"&#62;
				&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;degrafa:GradientStop ratio="0" alpha="1" color="#FFFFFF"/&#62;
				&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;degrafa:GradientStop ratio="1" alpha="1" color="#DDDDDD"/&#62;
				&#160; &#160; &#160; &#160; &#60;/degrafa:LinearGradientFill&#62;  [...]]]></description>
			<content:encoded><![CDATA[				<p>MoonGiftで紹介されていたDegrafaを試してみた。<br />
				<img class="alignnone size-full wp-image-454" title="degrafa1" src="http://parpue.net/wp-content/uploads/degrafa1.png" alt="" width="407" height="218" /></p>
				<p><span id="more-432"></span></p>
				<p>■参考リンク<br />
				→<a href="http://www.moongift.jp/2009/03/degrafa/" target="_blank">Flash向けのグラフィックスフレームワーク「Degrafa」</a><br />
				→<a href="http://www.degrafa.org/">http://www.degrafa.org/</a></p>
				<p><a href="http://parpue.net/wp-content/uploads/degrafa.png" rel="shadowbox[post-432];player=img;"><img class="alignnone size-thumbnail wp-image-447" title="degrafa" src="http://parpue.net/wp-content/uploads/degrafa-150x150.png" alt="" width="150" height="150" /></a><br />
				公式のサンプルたちがおもしろい<br />
				これでFlex標準コンポーネントのスキンも作成できるようです。<br />
				Flexコンポーネント使いつつも我流Flex画面とかもできます。</p>
				<p>ついでに見つけた反射効果のライブラリも使いました<br />
				→<a href="http://www.rictus.com/muchado/2006/07/05/live-reflection-component/">Live “reflection” component</a></p>
				<p>■作ってみたデモ<br />
				<object width="410" height="400" data="http://parpue.net/wp-content/uploads/degrafatest.swf" type="application/x-shockwave-flash"><param name="id" value="ColorTest" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://parpue.net/wp-content/uploads/degrafatest.swf" /></object><br />
				反射とかやったせいでちょっと重い・・・。オブジェクトの描画は全部ＭＸＭＬだけで行ってます。</p>
				<p>公式のサンプルをいくつか落として、ドキュメントも適当に読んで、<br />
				ちょっと理解した程度ですが、<br />
				MXMLで、線や、円などの描画オブジェクトを配置していき、<br />
				塗りや、線の太さなどもMXMLで定義できるようなものだと思います。</p>
				<div class="igBar"><span id="lxml-19"><a href="#" onclick="javascript:showPlainTxt('xml-19'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-19">
				<div class="xml">
				<ol start="5" style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Canvas <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"main_canvas"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"5"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"5"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"400"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"258"</span> <span style="color: #000066;">verticalScrollPolicy</span>=<span style="color: #ff0000;">"off"</span> <span style="color: #000066;">horizontalScrollPolicy</span>=<span style="color: #ff0000;">"off"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:Surface<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:fills<span style="font-weight: bold; color: black;">&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>
				UIComponentを継承しているSurfaceを用意して、<br />
				その上に塗りの定義のfills,線(ストローク)の定義であるstrokes,<br />
				描画オブジェクトGeometryGroupを定義していくことで、描画していく。</p>
				<div class="igBar"><span id="lxml-20"><a href="#" onclick="javascript:showPlainTxt('xml-20'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-20">
				<div class="xml">
				<ol start="8" style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:fills<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:LinearGradientFill <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"MainFill"</span> <span style="color: #000066;">angle</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFFFFF"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#DDDDDD"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:LinearGradientFill<span style="font-weight: bold; color: black;">&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>
				グラデーション塗りの定義をしてから、</p>
				<div class="igBar"><span id="lxml-21"><a href="#" onclick="javascript:showPlainTxt('xml-21'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-21">
				<div class="xml">
				<ol start="36" style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GeometryGroup<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:RoundedRectangle <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"aa"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"300"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"248"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"40"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">cornerRadius</span>=<span style="color: #ff0000;">"15"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{MainFill}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{BasicStroke}"</span><span style="font-weight: bold; color: black;">&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>
				描画オブジェクトに塗りの設定を適用していく。</p>
				<p>おもしろいけど、、、結構めんどくさい。</p>
				<p>でもこれで、MXMLコンポーネントを手軽に作るにはいいかもしれない、です。</p>
				<p>以下全部</p>
				<div class="igBar"><span id="lxml-22"><a href="#" onclick="javascript:showPlainTxt('xml-22'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-22">
				<div class="xml">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Application xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"http://www.adobe.com/2006/mxml"</span> <span style="color: #000066;">layout</span>=<span style="color: #ff0000;">"absolute"</span> xmlns:<span style="color: #000066;">degrafa</span>=<span style="color: #ff0000;">"http://www.degrafa.com/2007"</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; xmlns:<span style="color: #000066;">refrector</span>=<span style="color: #ff0000;">"com.rictus.reflector.*"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"410"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"400"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#000000"</span> <span style="color: #000066;">backgroundGradientAlphas</span>=<span style="color: #ff0000;">"[1.0, 1.0]"</span> <span style="color: #000066;">backgroundGradientColors</span>=<span style="color: #ff0000;">"[#010101, #010101]"</span> <span style="color: #000066;">verticalScrollPolicy</span>=<span style="color: #ff0000;">"off"</span> <span style="color: #000066;">horizontalScrollPolicy</span>=<span style="color: #ff0000;">"off"</span> xmlns:<span style="color: #000066;">geometry</span>=<span style="color: #ff0000;">"com.degrafa.geometry.*"</span> <span style="color: #000066;">creationComplete</span>=<span style="color: #ff0000;">"startHandler(event);"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Canvas <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"main_canvas"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"5"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"5"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"400"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"258"</span> <span style="color: #000066;">verticalScrollPolicy</span>=<span style="color: #ff0000;">"off"</span> <span style="color: #000066;">horizontalScrollPolicy</span>=<span style="color: #ff0000;">"off"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:Surface<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:fills<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:LinearGradientFill <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"MainFill"</span> <span style="color: #000066;">angle</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFFFFF"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#DDDDDD"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:LinearGradientFill<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:LinearGradientFill <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"TextFill"</span> <span style="color: #000066;">angle</span>=<span style="color: #ff0000;">"90"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#AAAAAA"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#444444"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:LinearGradientFill<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:SolidFill <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"CircleFill1"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#000044"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:SolidFill <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"CircleFill2"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#FFFFFF"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:SolidFill <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"CircleFill3"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#333333"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:fills<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:strokes<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:SolidStroke <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#000000"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"BasicStroke"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:SolidStroke <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#222222"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"3"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"CircleStroke1"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:LinearGradientStroke <span style="color: #000066;">weight</span>=<span style="color: #ff0000;">"4"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"insetEdge"</span> <span style="color: #000066;">pixelHinting</span>=<span style="color: #ff0000;">"true"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">".3"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#366079"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">".5"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#366079"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GradientStop <span style="color: #000066;">ratio</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">".3"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#366079"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:LinearGradientStroke<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:strokes<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GeometryGroup<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:RoundedRectangle <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"aa"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"300"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"248"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"40"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">cornerRadius</span>=<span style="color: #ff0000;">"15"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{MainFill}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{BasicStroke}"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:RasterText <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{TextFill}"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"55"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"210&nbsp;"</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">"34"</span> <span style="color: #000066;">text</span>=<span style="color: #ff0000;">"Hello!!Degrafa!"</span> <span style="color: #000066;">bold</span>=<span style="color: #ff0000;">"true"</span> <span style="color: #000066;">autoSize</span>=<span style="color: #ff0000;">"left"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:GeometryComposition <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"150"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"circle"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:Circle <span style="color: #000066;">radius</span>=<span style="color: #ff0000;">"30"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{CircleFill1}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{CircleStroke1}"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"10"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:Circle&nbsp; <span style="color: #000066;">radius</span>=<span style="color: #ff0000;">"25"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{CircleFill2}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{CircleStroke1}"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"5"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"5"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:Circle&nbsp; <span style="color: #000066;">radius</span>=<span style="color: #ff0000;">"15"</span> <span style="color: #000066;">fill</span>=<span style="color: #ff0000;">"{CircleFill3}"</span> <span style="color: #000066;">stroke</span>=<span style="color: #ff0000;">"{CircleStroke1}"</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"10"</span><span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:Circle<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:Circle<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;degrafa</span>:filters<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:GlowFilter <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">"0.5"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"0x777777"</span> <span style="color: #000066;">blurX</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">blurY</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">strength</span>=<span style="color: #ff0000;">"3"</span> <span style="color: #000066;">inner</span>=<span style="color: #ff0000;">"false"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:filters<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:Circle<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:GeometryComposition<span style="font-weight: bold; color: black;">&gt;</span></span>&nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:RoundedRectangle<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:GeometryGroup<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/degrafa</span>:Surface<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Canvas<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;refrector</span>:Reflector <span style="color: #000066;">target</span>=<span style="color: #ff0000;">"{main_canvas}"</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">".3"</span> <span style="color: #000066;">falloff</span>=<span style="color: #ff0000;">"{(this.circle.y+100)}"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"reflector"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; </li>
				<li style="color:#26536A;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; private var add_y:Number = 3;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; private var add_x:Number = 3;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; function startHandler(event:Event):void{</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; this.addEventListener(Event.ENTER_FRAME, this.onEnterHandler);</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; }</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; function onEnterHandler(event:Event):void{</li>
				<li style="color:#26536A;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(circle.x &lt;-3) this.add_x = -add_x;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(circle.x&gt; 225) this.add_x = -add_x;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(circle.y &lt;0) this.add_y = -add_y;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(circle.y&gt; 177) this.add_y = -add_y;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.x += add_x;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.y += add_y;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; }</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; ]]&gt;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/mx</span>:Application<span style="font-weight: bold; color: black;">&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/432/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>円をただ囲まれた壁の中で動かす</title>
		<link>http://parpue.net/web/424</link>
		<comments>http://parpue.net/web/424#comments</comments>
		<pubDate>Thu, 19 Feb 2009 03:09:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[習作]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=424</guid>
		<description><![CDATA[				１／２４のライブ以降、仕事がほんと忙しく・・・
				何もできていません。
				次回ライブは３／２０です。
				ライブ興味のある方はこちらもどうぞ。
				(http://chocolataste-planner.jp)
				さて、最近、これからFlashを覚える仕事仲間ができまして、
				ちょくちょく小物作り、習作で勉強してもらってます。
				壁の中を円が動くのってどうやってつくります？といわれて、
				作ったのがこれ。せっかくだからblogに乗せました。
				
				↓　とりあえず楽するコードです。
				
				&#62;&#62;text
				ACTIONSCRIPT:
				
				
				
				package &#123;
				&#160; &#160; import flash.display.Sprite;
				&#160; &#160; import flash.events.Event;
				&#160;
				&#160; &#160; public class RefrectionCircle extends Sprite
				&#160; &#160; &#123;
				&#160; &#160; &#160; &#160; private var areaRect_up:Sprite;
				&#160; &#160; &#160; &#160; private var areaRect_left:Sprite;
				&#160; &#160; &#160; &#160; private var areaRect_right:Sprite;
				&#160; &#160; &#160; &#160; private var areaRect_bottom:Sprite;
				&#160; &#160; &#160; &#160; 
				&#160; &#160; &#160; &#160; private var add_x = 10;
				&#160; &#160; &#160; &#160;  [...]]]></description>
			<content:encoded><![CDATA[				<p>１／２４のライブ以降、仕事がほんと忙しく・・・<br />
				何もできていません。</p>
				<p>次回ライブは３／２０です。<br />
				ライブ興味のある方はこちらもどうぞ。<br />
				(<a href="http://chocolataste-planner.jp" target="_blank">http://chocolataste-planner.jp</a>)</p>
				<p>さて、最近、これからFlashを覚える仕事仲間ができまして、<br />
				ちょくちょく小物作り、習作で勉強してもらってます。</p>
				<p>壁の中を円が動くのってどうやってつくります？といわれて、<br />
				作ったのがこれ。せっかくだからblogに乗せました。</p>
				<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="ColorTest" width="400" height="400" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="http://parpue.net/wp-content/uploads/refrectioncircle.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="allowScriptAccess" value="sameDomain" /><embed src="http://parpue.net/wp-content/uploads/refrectioncircle.swf" quality="high" bgcolor="#ffffff" width="400" height="400" name="ColorTest" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object></p>
				<p>↓　とりあえず楽するコードです。<br />
				<span id="more-424"></span></p>
				<div class="igBar"><span id="lactionscript-24"><a href="#" onclick="javascript:showPlainTxt('actionscript-24'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-24">
				<div class="actionscript">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">package <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;</li>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> RefrectionCircle <span style="color: #0066CC;">extends</span> Sprite</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> areaRect_up:Sprite;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> areaRect_left:Sprite;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> areaRect_right:Sprite;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> areaRect_bottom:Sprite;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> add_x = <span style="color: #cc66cc;color:#800000;">10</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> add_y = <span style="color: #cc66cc;color:#800000;">15</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> RefrectionCircle<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">scaleMode</span> = <span style="color: #ff0000;">"noScale"</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">align</span> = <span style="color: #ff0000;">"TL"</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> areaRect_bg:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_bg.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0xFFFFFF<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_bg.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">400</span>,<span style="color: #cc66cc;color:#800000;">400</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>areaRect_bg<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_up = <span style="color: #000000; font-weight: bold;">new</span> Sprite;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_up.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span>, 0x000000<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_up.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">400</span>,<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>areaRect_up<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_left = <span style="color: #000000; font-weight: bold;">new</span> Sprite;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_left.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span>,0x000000<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_left.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">400</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>areaRect_left<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_right = <span style="color: #000000; font-weight: bold;">new</span> Sprite;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_right.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span>,0x000000<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_right.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">moveTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">400</span>,<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_right.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">400</span>,<span style="color: #cc66cc;color:#800000;">400</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>areaRect_right<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_bottom = <span style="color: #000000; font-weight: bold;">new</span> Sprite;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_bottom.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span>,0x000000<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_bottom.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">moveTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">400</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; areaRect_bottom.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">400</span>,<span style="color: #cc66cc;color:#800000;">400</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>areaRect_bottom<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> circle:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0xFFCCCC<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span>, 0xFF6666<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawCircle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">90</span>,<span style="color: #cc66cc;color:#800000;">90</span>,<span style="color: #cc66cc;color:#800000;">50</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>circle<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onEnterHandler</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onEnterHandler<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #0066CC;">target</span>.<span style="color: #006600;">hitTestObject</span><span style="color: #66cc66;">&#40;</span>areaRect_up<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">add_y</span> = -add_y;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #0066CC;">target</span>.<span style="color: #006600;">hitTestObject</span><span style="color: #66cc66;">&#40;</span>areaRect_left<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">add_x</span> = -add_x;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #0066CC;">target</span>.<span style="color: #006600;">hitTestObject</span><span style="color: #66cc66;">&#40;</span>areaRect_right<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">add_x</span> = -add_x;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #0066CC;">target</span>.<span style="color: #006600;">hitTestObject</span><span style="color: #66cc66;">&#40;</span>areaRect_bottom<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">add_y</span> = -add_y;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event.<span style="color: #0066CC;">target</span>.<span style="color: #006600;">x</span> += add_x;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event.<span style="color: #0066CC;">target</span>.<span style="color: #006600;">y</span> += add_y;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>今後はHitTestとか使おうと思ったけどめんどいからやめました…。</p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/424/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flashで色を次々に、スムーズに変える</title>
		<link>http://parpue.net/web/380</link>
		<comments>http://parpue.net/web/380#comments</comments>
		<pubDate>Mon, 17 Nov 2008 03:59:53 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[ColorTransform]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=380</guid>
		<description><![CDATA[				
				このようなFlash、よく見るので調べて作ってみた。
				参考）
				ムービークリップの色を変化させる
				http://www.project-nya.jp/modules/weblog/details.php?blog_id=468
				このソースを頂戴し、さらにTweenerを使って色から色へ自動的に段階的に変えています。
				↓ ソースコード
				
				&#62;&#62;text
				ACTIONSCRIPT:
				
				
				
				package &#123;
				&#160; &#160; import caurina.transitions.Tweener;
				&#160; &#160; 
				&#160; &#160; import flash.display.Sprite;
				&#160; &#160; import flash.geom.ColorTransform;
				&#160; &#160; import flash.utils.*;
				&#160;
				&#160; &#160; public class ColorTest extends Sprite
				&#160; &#160; &#123;
				&#160; &#160; &#160; &#160; private var circle:Sprite;
				&#160; &#160; &#160; &#160; private var colorListIndex:Number = 0;
				&#160; &#160; &#160; &#160; // 色のリスト
				&#160; &#160; &#160; &#160; private var colorList:Array = &#91;0xFF9999, 0x99FF99, 0x9999FF, 0xFFFF99,  [...]]]></description>
			<content:encoded><![CDATA[				<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="ColorTest" width="200" height="200" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="http://parpue.net/wp-content/uploads/colortest.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="allowScriptAccess" value="sameDomain" /><embed src="http://parpue.net/wp-content/uploads/colortest.swf" quality="high" bgcolor="#ffffff" width="200" height="200" name="ColorTest" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object></p>
				<p>このようなFlash、よく見るので調べて作ってみた。</p>
				<p>参考）<br />
				ムービークリップの色を変化させる<br />
				<a href="http://www.project-nya.jp/modules/weblog/details.php?blog_id=468">http://www.project-nya.jp/modules/weblog/details.php?blog_id=468</a></p>
				<p>このソースを頂戴し、さらにTweenerを使って色から色へ自動的に段階的に変えています。</p>
				<p>↓ ソースコード<br />
				<span id="more-380"></span></p>
				<div class="igBar"><span id="lactionscript-26"><a href="#" onclick="javascript:showPlainTxt('actionscript-26'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-26">
				<div class="actionscript">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">package <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> caurina.<span style="color: #006600;">transitions</span>.<span style="color: #006600;">Tweener</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">ColorTransform</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">utils</span>.*;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ColorTest <span style="color: #0066CC;">extends</span> Sprite</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> circle:Sprite;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> colorListIndex:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// 色のリスト</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> colorList:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span>0xFF9999, 0x99FF99, 0x9999FF, 0xFFFF99, 0x99FFFF <span style="color: #66cc66;">&#93;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> gradeMax:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">100</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> baseColor:<span style="color: #0066CC;">Number</span> = 0xFF0000;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> targetColor:<span style="color: #0066CC;">Number</span> = 0x0000FF;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> grade:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</li>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> ColorTest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">scaleMode</span> = <span style="color: #ff0000;">"noScale"</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">align</span> = <span style="color: #ff0000;">"TL"</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle = <span style="color: #000000; font-weight: bold;">new</span> Sprite;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>colorList<span style="color: #66cc66;">&#91;</span>colorListIndex<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawCircle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">100</span>,<span style="color: #cc66cc;color:#800000;">100</span>,<span style="color: #cc66cc;color:#800000;">95</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>circle<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changeColor<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> changeColor<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; grade = <span style="color: #cc66cc;color:#800000;">0</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// 今の色</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; baseColor = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">colorList</span><span style="color: #66cc66;">&#91;</span>colorListIndex<span style="color: #66cc66;">&#93;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; colorListIndex++;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>colorListIndex&gt;= colorList.<span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#41;</span> colorListIndex = <span style="color: #cc66cc;color:#800000;">0</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// 次の色</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetColor = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">colorList</span><span style="color: #66cc66;">&#91;</span>colorListIndex<span style="color: #66cc66;">&#93;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tweener.<span style="color: #006600;">addTween</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, <span style="color: #66cc66;">&#123;</span>grade:<span style="color: #cc66cc;color:#800000;">100</span>, <span style="color: #0066CC;">time</span>:<span style="color: #cc66cc;color:#800000;">2</span>, <span style="color: #0066CC;">onUpdate</span>:<span style="color: #0066CC;">this</span>.<span style="color: #006600;">updateColor</span>, onComplete:<span style="color: #0066CC;">this</span>.<span style="color: #006600;">changeColor</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> updateColor<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> baseObj:<span style="color: #0066CC;">Object</span> = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">colorToRGB</span><span style="color: #66cc66;">&#40;</span>baseColor<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> targetObj:<span style="color: #0066CC;">Object</span> = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">colorToRGB</span><span style="color: #66cc66;">&#40;</span>targetColor<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> r:<span style="color: #0066CC;">Number</span> = baseObj.<span style="color: #006600;">r</span> + <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">round</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>targetObj.<span style="color: #006600;">r</span> - baseObj.<span style="color: #006600;">r</span><span style="color: #66cc66;">&#41;</span>/gradeMax*grade<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> g:<span style="color: #0066CC;">Number</span> = baseObj.<span style="color: #006600;">g</span> + <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">round</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>targetObj.<span style="color: #006600;">g</span> - baseObj.<span style="color: #006600;">g</span><span style="color: #66cc66;">&#41;</span>/gradeMax*grade<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> b:<span style="color: #0066CC;">Number</span> = baseObj.<span style="color: #006600;">b</span> + <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">round</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>targetObj.<span style="color: #006600;">b</span> - baseObj.<span style="color: #006600;">b</span><span style="color: #66cc66;">&#41;</span>/gradeMax*grade<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; circle.<span style="color: #006600;">transform</span>.<span style="color: #006600;">colorTransform</span> = <span style="color: #000000; font-weight: bold;">new</span> ColorTransform<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">100</span>, r, g, b, <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> colorToRGB<span style="color: #66cc66;">&#40;</span>clr:<span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Object</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> r:<span style="color: #0066CC;">Number</span> = <span style="color: #66cc66;">&#40;</span>clr &amp; 0xFF0000<span style="color: #66cc66;">&#41;</span>&gt;&gt; <span style="color: #cc66cc;color:#800000;">16</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> g:<span style="color: #0066CC;">Number</span> = <span style="color: #66cc66;">&#40;</span>clr &amp; 0x00FF00<span style="color: #66cc66;">&#41;</span>&gt;&gt; <span style="color: #cc66cc;color:#800000;">8</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> b:<span style="color: #0066CC;">Number</span> = clr &amp; 0x0000FF;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> obj:<span style="color: #0066CC;">Object</span> = <span style="color: #66cc66;">&#123;</span>r: r, g: g, b: b<span style="color: #66cc66;">&#125;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> obj;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/380/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
