<?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; actionscript3</title>
	<atom:link href="http://parpue.net/tag/actionscript3/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>マッシュアップ地図アルバムを作ってみる[Flickr+GoogleMaps+Flash]</title>
		<link>http://parpue.net/web/1070</link>
		<comments>http://parpue.net/web/1070#comments</comments>
		<pubDate>Sun, 19 Jul 2009 20:53:13 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[as3flickrlib]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[googlemaps]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=1070</guid>
		<description><![CDATA[				
				ちょっと前にas3flickrlibを使ってFlickrの緯度経度情報の取り方を調べた。
				緯度経度情報が取れたのなら、やることはひとつ、
				GoogleMaps上に表示だ。
				さっそくGoogleMaps Flash API のリファレンスを見ながらしこしこ作ってみた。
				
				以前の記事の下北GPSログの情報を流用した。
				
				マーカーをクリックで該当箇所の画像が見られる。
				地図上のラインは、KMLから緯度経度ルート情報を作成した、
				外部ファイルから取得している。
				リストはこんな感じ。
				突貫で作ったので、今度余裕があったらコレをオサレ化してみようと思う。
				Google API Key、 Flickr API Keyは伏せたソース一覧↓
				＊以下のファイル他、as3flickrlibにちょっと手をいれてます。
				GPSPhoto.as(メイン)
				&#62;&#62;text
				ACTIONSCRIPT:
				
				
				
				package &#123;
				import com.adobe.webapis.flickr.PhotoSet;
				import com.google.maps.LatLng;
				import flash.display.Sprite;
				import flash.events.Event;
				import flash.events.IOErrorEvent;
				import flash.net.URLLoader;
				import flash.net.URLRequest;
				&#160;
				public class GPSPhoto extends Sprite
				&#123;
				private var csvURL:String = "shimokita.csv";
				private var setid:String = "72157620666800332";
				&#160;
				private var gpsLoader:URLLoader;
				private var map:Gmap;
				private var flcon:FlickerConnector;
				private var flickrImageList:Array;
				private var photoSet:PhotoSet;
				&#160;
				public function GPSPhoto&#40;&#41;
				&#123;
				// パラメータでGPSリストとPhotoSetのID取得
				if&#40;loaderInfo.parameters.propertyIsEnumerable&#40;"csvURL"&#41;&#41; this.csvURL = loaderInfo.parameters&#91;"csvURL"&#93;;
				if&#40;loaderInfo.parameters.propertyIsEnumerable&#40;"setid"&#41;&#41; this.csvURL = loaderInfo.parameters&#91;"setid"&#93;;
				&#160;
				stage.align = "TL";
				stage.scaleMode = "noScale";
				map = new Gmap&#40;750,600,this.mapReadyHandler&#41;;
				map.onMarkerClick  [...]]]></description>
			<content:encoded><![CDATA[				<div style="text-align:center"><img class="alignnone size-full wp-image-1086" style="border:solid 1px #333" title="title" src="http://parpue.net/wp-content/uploads/2009/07/title.jpg" alt="title" width="525" height="198" /></div>
				<p><a href="http://parpue.net/web/996">ちょっと前</a>にas3flickrlibを使ってFlickrの緯度経度情報の取り方を調べた。</p>
				<p>緯度経度情報が取れたのなら、やることはひとつ、<br />
				GoogleMaps上に表示だ。<br />
				さっそくGoogleMaps Flash API のリファレンスを見ながらしこしこ作ってみた。</p>
				<p><span id="more-1070"></span></p>
				<p><a href="http://parpue.net/diary/722">以前の記事</a>の下北GPSログの情報を流用した。<br />
				<object id="degrafabezier" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="750" height="600" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="FlashVars" value="csvURL=http://parpue.net/wp-content/uploads/2009/07/shimokita.csv" /><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/07/GPSPhoto.swf" /><embed id="degrafabezier" type="application/x-shockwave-flash" width="750" height="600" src="http://parpue.net/wp-content/uploads/2009/07/GPSPhoto.swf" allowscriptaccess="sameDomain" bgcolor="#ffffff" wmode="transparent" flashvars="csvURL=http://parpue.net/wp-content/uploads/2009/07/shimokita.csv" quality="high"></embed></object><br />
				マーカーをクリックで該当箇所の画像が見られる。<br />
				地図上のラインは、KMLから緯度経度ルート情報を作成した、<br />
				外部ファイルから取得している。<br />
				<a href="http://parpue.net/wp-content/uploads/2009/07/shimokita.csv">リストはこんな感じ。</a><br />
				突貫で作ったので、今度余裕があったらコレをオサレ化してみようと思う。</p>
				<p>Google API Key、 Flickr API Keyは伏せたソース一覧↓<br />
				＊以下のファイル他、as3flickrlibにちょっと手をいれてます。</p>
				<p>GPSPhoto.as(メイン)</p>
				<div class="igBar"><span id="lactionscript-5"><a href="#" onclick="javascript:showPlainTxt('actionscript-5'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-5">
				<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;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #006600;">webapis</span>.<span style="color: #006600;">flickr</span>.<span style="color: #006600;">PhotoSet</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">LatLng</span>;</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">IOErrorEvent</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLLoader</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequest</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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> GPSPhoto <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;"><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> csvURL:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"shimokita.csv"</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> setid:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"72157620666800332"</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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> gpsLoader:URLLoader;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> map:Gmap;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> flcon:FlickerConnector;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> flickrImageList:<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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> photoSet:PhotoSet;</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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> GPSPhoto<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></li>
				<li style="color:#26536A;"><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;"><span style="color: #808080; font-style: italic;">// パラメータでGPSリストとPhotoSetのID取得</span></li>
				<li style="color:#26536A;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>loaderInfo.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">propertyIsEnumerable</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"csvURL"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">csvURL</span> = loaderInfo.<span style="color: #006600;">parameters</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">"csvURL"</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;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>loaderInfo.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">propertyIsEnumerable</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"setid"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">csvURL</span> = loaderInfo.<span style="color: #006600;">parameters</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">"setid"</span><span style="color: #66cc66;">&#93;</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;"><span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">align</span> = <span style="color: #ff0000;">"TL"</span>;</li>
				<li style="color:#26536A;"><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;">map = <span style="color: #000000; font-weight: bold;">new</span> Gmap<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">750</span>,<span style="color: #cc66cc;color:#800000;">600</span>,<span style="color: #0066CC;">this</span>.<span style="color: #006600;">mapReadyHandler</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">map.<span style="color: #006600;">onMarkerClick</span> = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onMarkerClickHandler</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>map<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> mapReadyHandler<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;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">url</span>:<span style="color: #0066CC;">String</span> = csvURL;</li>
				<li style="color:#26536A;"><span style="color: #000000; font-weight: bold;">var</span> request:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</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;">gpsLoader = <span style="color: #000000; font-weight: bold;">new</span> URLLoader<span style="color: #66cc66;">&#40;</span>request<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">gpsLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, loadCompleteHandler<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;">gpsLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>IOErrorEvent.<span style="color: #006600;">IO_ERROR</span>, ioErrorHandler<span style="color: #66cc66;">&#41;</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;">flcon = <span style="color: #000000; font-weight: bold;">new</span> FlickerConnector;</li>
				<li style="color:#26536A;">flcon.<span style="color: #006600;">onFail</span> = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onFlickrFailHandler</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">flcon.<span style="color: #006600;">onGetInfo</span> = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onGetInfoHandler</span>;</li>
				<li style="color:#26536A;">flcon.<span style="color: #006600;">onGetPhotos</span> = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onGetPhotosHandler</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;">flcon.<span style="color: #006600;">getInfo</span><span style="color: #66cc66;">&#40;</span>setid<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;"><span style="color: #66cc66;">&#125;</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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onMarkerClickHandler<span style="color: #66cc66;">&#40;</span>id:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">flickrImageList</span>.<span style="color: #0066CC;">length</span>; i++<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;"><span style="color: #000000; font-weight: bold;">var</span> image:FlickrImage = flickrImageList<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</li>
				<li style="color:#26536A;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>image.<span style="color: #006600;">id</span> == id<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;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">map</span>.<span style="color: #006600;">showPhoto</span><span style="color: #66cc66;">&#40;</span>image.<span style="color: #006600;">width_m</span>, image.<span style="color: #006600;">height_m</span>, <span style="color: #000000; font-weight: bold;">new</span> LatLng<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">parseFloat</span><span style="color: #66cc66;">&#40;</span>image.<span style="color: #006600;">latitude</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #0066CC;">parseFloat</span><span style="color: #66cc66;">&#40;</span>image.<span style="color: #006600;">longitude</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>, image.<span style="color: #006600;">title</span>, image.<span style="color: #006600;">url_m</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><span style="color: #b1b100;">break</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>
				<li style="color:#26536A;"><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>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> loadCompleteHandler<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="color:#26536A;"><span style="color: #000000; font-weight: bold;">var</span> lineGeoCSV:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>gpsLoader.<span style="color: #0066CC;">data</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;"><span style="color: #000000; font-weight: bold;">var</span> geoList:<span style="color: #0066CC;">Array</span> = lineGeoCSV.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">" "</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><span style="color: #000000; font-weight: bold;">var</span> pointList:<span style="color: #0066CC;">Array</span> = <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;"><span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">Number</span>=<span style="color: #cc66cc;color:#800000;">0</span>; i</li>
				<li style="color:#26536A;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>geoList<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>==<span style="color: #ff0000;">""</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">continue</span>;</li>
				<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> infos:<span style="color: #0066CC;">Array</span> = <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>geoList<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">","</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">pointList.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> LatLng<span style="color: #66cc66;">&#40;</span>infos<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#93;</span>, infos<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</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;"><span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;">map.<span style="color: #006600;">drawPolyline</span><span style="color: #66cc66;">&#40;</span>pointList<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;"><span style="color: #66cc66;">&#125;</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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onGetInfoHandler<span style="color: #66cc66;">&#40;</span>photoset:PhotoSet<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">photoSet</span> = photoSet;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">flcon</span>.<span style="color: #006600;">getPhotos</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">setid</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onGetPhotosHandler<span style="color: #66cc66;">&#40;</span>flickrImageList:<span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">flickrImageList</span> = flickrImageList;</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;"><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;"><span style="color: #808080; font-style: italic;">for (var i:Number = 0; i &amp;lt;flickrImageList.length; i++) {</span></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">var image:FlickrImage = flickrImageList[i];</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #808080; font-style: italic;">this.addChild(image.image);</span></li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;">map.<span style="color: #006600;">drawMarkers</span><span style="color: #66cc66;">&#40;</span>flickrImageList<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;"><span style="color: #66cc66;">&#125;</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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onFlickrFailHandler<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;"><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;"><span style="color: #66cc66;">&#125;</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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> ioErrorHandler<span style="color: #66cc66;">&#40;</span>event:IOErrorEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><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;"><span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;"><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>Gmap.as 地図管理用</p>
				<div class="igBar"><span id="lactionscript-6"><a href="#" onclick="javascript:showPlainTxt('actionscript-6'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-6">
				<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</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">InfoWindowOptions</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">LatLng</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">Map</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">MapEvent</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">MapMouseEvent</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">MapTypeControl</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">ZoomControl</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">overlays</span>.<span style="color: #006600;">Marker</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">overlays</span>.<span style="color: #006600;">MarkerOptions</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">overlays</span>.<span style="color: #006600;">Polyline</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">overlays</span>.<span style="color: #006600;">PolylineOptions</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">styles</span>.<span style="color: #006600;">FillStyle</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">google</span>.<span style="color: #006600;">maps</span>.<span style="color: #006600;">styles</span>.<span style="color: #006600;">StrokeStyle</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;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">Point</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #006600;">StyleSheet</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;"><span style="color: #808080; font-style: italic;">/**</span></li>
				<li style="color:#26536A;"><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;"><span style="color: #808080; font-style: italic;">* @author okm</span></li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Gmap <span style="color: #0066CC;">extends</span> Sprite</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> map:Map;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> markerList:<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;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> onReady:<span style="color: #000000; font-weight: bold;">Function</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> onMarkerClick:<span style="color: #000000; font-weight: bold;">Function</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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Gmap<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">width</span>:<span style="color: #0066CC;">Number</span>,<span style="color: #0066CC;">height</span>:<span style="color: #0066CC;">Number</span>, onReady:<span style="color: #000000; font-weight: bold;">Function</span><span style="color: #66cc66;">&#41;</span></li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">onReady</span> = onReady;</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;">markerList = <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;">map = <span style="color: #000000; font-weight: bold;">new</span> Map;</li>
				<li style="color:#26536A;">map.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MapEvent.<span style="color: #006600;">MAP_READY</span>, onReady<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;">map.<span style="color: #0066CC;">key</span> = <span style="color: #ff0000;">"Google Maps APIキー"</span>;</li>
				<li style="color:#26536A;">map.<span style="color: #006600;">addControl</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> MapTypeControl<span style="color: #66cc66;">&#40;</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;">map.<span style="color: #006600;">addControl</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> ZoomControl<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">map.<span style="color: #006600;">setSize</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> Point<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">width</span>, <span style="color: #0066CC;">height</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;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>map<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;"><span style="color: #66cc66;">&#125;</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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> drawPolyline<span style="color: #66cc66;">&#40;</span>pointList:<span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #000000; font-weight: bold;">var</span> polyline:Polyline = <span style="color: #000000; font-weight: bold;">new</span> Polyline<span style="color: #66cc66;">&#40;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">pointList,</li>
				<li style="color:#26536A;"><span style="color: #000000; font-weight: bold;">new</span> PolylineOptions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span> strokeStyle: <span style="color: #000000; font-weight: bold;">new</span> StrokeStyle<span style="color: #66cc66;">&#40;</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;"><span style="color: #0066CC;">color</span>: 0x6481F5,</li>
				<li style="color:#26536A;">thickness: <span style="color: #cc66cc;color:#800000;">4</span>,</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">alpha: <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">7</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span></li>
				<li style="color:#26536A;"><span style="color: #66cc66;">&#125;</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;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">map</span>.<span style="color: #006600;">addOverlay</span><span style="color: #66cc66;">&#40;</span>polyline<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">map</span>.<span style="color: #006600;">setCenter</span><span style="color: #66cc66;">&#40;</span>pointList<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>,<span style="color: #cc66cc;color:#800000;">17</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;"><span style="color: #66cc66;">&#125;</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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> drawMarkers<span style="color: #66cc66;">&#40;</span>flickrImageList:<span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>; i &amp;lt;flickrImageList.<span style="color: #0066CC;">length</span>; i++<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;"><span style="color: #000000; font-weight: bold;">var</span> image:FlickrImage = flickrImageList<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</li>
				<li style="color:#26536A;"><span style="color: #000000; font-weight: bold;">var</span> marker:Marker = <span style="color: #000000; font-weight: bold;">new</span> Marker<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> LatLng<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">parseFloat</span><span style="color: #66cc66;">&#40;</span>image.<span style="color: #006600;">latitude</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #0066CC;">parseFloat</span><span style="color: #66cc66;">&#40;</span>image.<span style="color: #006600;">longitude</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;"><span style="color: #000000; font-weight: bold;">new</span> MarkerOptions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">strokeStyle: <span style="color: #000000; font-weight: bold;">new</span> StrokeStyle<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">color</span>: 0x666666<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;">fillStyle: <span style="color: #000000; font-weight: bold;">new</span> FillStyle<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">color</span>: 0x6481F5, alpha: <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">8</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>,</li>
				<li style="color:#26536A;">radius: <span style="color: #cc66cc;color:#800000;">12</span>,</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">hasShadow: <span style="color: #000000; font-weight: bold;">true</span></li>
				<li style="color:#26536A;"><span style="color: #66cc66;">&#125;</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;">marker.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MapMouseEvent.<span style="color: #006600;">CLICK</span>, onMarkerClickHandler, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;color:#800000;">1</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">markerList</span>.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>id:image.<span style="color: #006600;">id</span>, marker:marker<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;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">map</span>.<span style="color: #006600;">addOverlay</span><span style="color: #66cc66;">&#40;</span>marker<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><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>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onMarkerClickHandler<span style="color: #66cc66;">&#40;</span>event:MapMouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>; i &amp;lt;markerList.<span style="color: #0066CC;">length</span>; i++<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;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>markerList<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">marker</span> == event.<span style="color: #0066CC;">target</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">onMarkerClick</span> != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onMarkerClick</span><span style="color: #66cc66;">&#40;</span>markerList<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">id</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;"><span style="color: #b1b100;">continue</span>;</li>
				<li style="color:#26536A;"><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>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">//map.panTo(event.target.getLatLng()); //マーカー座標へ移動</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>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> showPhoto<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">width</span>:<span style="color: #0066CC;">Number</span>, <span style="color: #0066CC;">height</span>:<span style="color: #0066CC;">Number</span>, latlng:LatLng, title:<span style="color: #0066CC;">String</span>, imageUrl:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #000000; font-weight: bold;">var</span> style:StyleSheet = <span style="color: #000000; font-weight: bold;">new</span> StyleSheet<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;"><span style="color: #000000; font-weight: bold;">var</span> heading:<span style="color: #0066CC;">Object</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><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;">heading.<span style="color: #006600;">fontWeight</span> = <span style="color: #ff0000;">"bold"</span>;</li>
				<li style="color:#26536A;">heading.<span style="color: #0066CC;">color</span> = <span style="color: #ff0000;">"#FF0000"</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;"><span style="color: #000000; font-weight: bold;">var</span> body:<span style="color: #0066CC;">Object</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><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;">body.<span style="color: #006600;">fontStyle</span> = <span style="color: #ff0000;">"italic"</span>;</li>
				<li style="color:#26536A;">body.<span style="color: #006600;">textAlign</span> = <span style="color: #ff0000;">"center"</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;">style.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">".heading"</span>, heading<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;">style.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"body"</span>, body<span style="color: #66cc66;">&#41;</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;"><span style="color: #808080; font-style: italic;">// インフォウィンドウ　オープン</span></li>
				<li style="color:#26536A;">map.<span style="color: #006600;">openInfoWindow</span><span style="color: #66cc66;">&#40;</span>latlng, <span style="color: #000000; font-weight: bold;">new</span> InfoWindowOptions<span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #0066CC;">width</span>:<span style="color: #0066CC;">width</span>+<span style="color: #cc66cc;color:#800000;">20</span>, <span style="color: #0066CC;">height</span>:<span style="color: #0066CC;">height</span>+<span style="color: #cc66cc;color:#800000;">35</span>,hasCloseButton: <span style="color: #000000; font-weight: bold;">true</span>, contentHTML:<span style="color: #ff0000;">"&lt;span class="</span>heading<span style="color: #ff0000;">"&gt;"</span>+title+<span style="color: #ff0000;">"&lt;/span&gt;</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #ff0000;">&lt;img src="</span>&amp;quot;+imageUrl+&amp;quot;<span style="color: #ff0000;">" alt="</span><span style="color: #ff0000;">" /&gt;"</span>, contentStyleSheet:style, hasTail:<span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><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>FlickerConnector.as Flickr管理用</p>
				<div class="igBar"><span id="lactionscript-7"><a href="#" onclick="javascript:showPlainTxt('actionscript-7'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-7">
				<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</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #006600;">webapis</span>.<span style="color: #006600;">flickr</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">FlickrResultEvent</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #006600;">webapis</span>.<span style="color: #006600;">flickr</span>.<span style="color: #006600;">FlickrService</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #006600;">webapis</span>.<span style="color: #006600;">flickr</span>.<span style="color: #006600;">methodgroups</span>.<span style="color: #006600;">Photos</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #006600;">webapis</span>.<span style="color: #006600;">flickr</span>.<span style="color: #006600;">methodgroups</span>.<span style="color: #006600;">PhotoSets</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #006600;">webapis</span>.<span style="color: #006600;">flickr</span>.<span style="color: #006600;">Photo</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Loader</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">LoaderInfo</span>;</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">IOErrorEvent</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLLoader</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequest</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</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;"><span style="color: #808080; font-style: italic;">/**</span></li>
				<li style="color:#26536A;"><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;"><span style="color: #808080; font-style: italic;">* @author okm</span></li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> FlickerConnector</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> fls:FlickrService;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> photos:Photos;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> photoSets:PhotoSets;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> photoIndex:<span style="color: #0066CC;">Number</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;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _imageList:<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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _thumnailList:<span style="color: #0066CC;">Object</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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> imageLoader:Loader; <span style="color: #808080; font-style: italic;">// 画像ローダ</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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> onGetPhotos:<span style="color: #000000; font-weight: bold;">Function</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> onGetInfo:<span style="color: #000000; font-weight: bold;">Function</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> onFail:<span style="color: #000000; font-weight: bold;">Function</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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> FlickerConnector<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">this</span>._imageList = <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;">fls = <span style="color: #000000; font-weight: bold;">new</span> FlickrService<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Flickr API キー"</span><span style="color: #66cc66;">&#41;</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;">photoSets = <span style="color: #000000; font-weight: bold;">new</span> PhotoSets<span style="color: #66cc66;">&#40;</span>fls<span style="color: #66cc66;">&#41;</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;">fls.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>FlickrResultEvent.<span style="color: #006600;">PHOTOSETS_GET_PHOTOS</span>, GetPhptosComplete<span style="color: #66cc66;">&#41;</span></li>
				<li style="color:#26536A;">fls.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>FlickrResultEvent.<span style="color: #006600;">PHOTOSETS_GET_INFO</span>, GetInfoComplete<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;"><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;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getPhotos<span style="color: #66cc66;">&#40;</span>setid:<span style="color: #0066CC;">String</span><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;">photoSets.<span style="color: #006600;">getPhotosExtras</span><span style="color: #66cc66;">&#40;</span>setid<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getInfo<span style="color: #66cc66;">&#40;</span>setid:<span style="color: #0066CC;">String</span><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;">photoSets.<span style="color: #006600;">getInfo</span><span style="color: #66cc66;">&#40;</span>setid<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> GetPhptosComplete<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlickrResultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #0066CC;">e</span>.<span style="color: #006600;">success</span> &amp;amp;&amp;amp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onFail</span> != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> onFail<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;"><span style="color: #808080; font-style: italic;">//photoSetの写真のタイトルとURLを配列に格納</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:uint; i &amp;lt;e.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">photoSet</span>.<span style="color: #006600;">photos</span>.<span style="color: #0066CC;">length</span> ; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #000000; font-weight: bold;">var</span> flickrImage:FlickrImage = <span style="color: #000000; font-weight: bold;">new</span> FlickrImage<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">photoSet</span>.<span style="color: #006600;">photos</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</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;"><span style="color: #0066CC;">this</span>._imageList.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>flickrImage<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">onGetPhotos</span> != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onGetPhotos</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>._imageList<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;"><span style="color: #808080; font-style: italic;">//getNextPhoto();</span></li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><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;"><span style="color: #808080; font-style: italic;">private function getNextPhoto():void {</span></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">if (this.photoIndex&amp;gt;= this._imageList.length) {</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #808080; font-style: italic;">// ロード完了</span></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">if (this.onGetPhotos != null) this.onGetPhotos(this._imageList);</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #808080; font-style: italic;">return;</span></li>
				<li style="color:#26536A;"><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;"></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">var image:FlickrImage = this._imageList[photoIndex];</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">imageLoader = new Loader();</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">var imageURLreq:URLRequest = new URLRequest(image.url_t);</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #808080; font-style: italic;">var imgInfo:LoaderInfo = imageLoader.contentLoaderInfo;</span></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">imgInfo.addEventListener(Event.INIT, onImageInit);</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #808080; font-style: italic;">imgInfo.addEventListener(IOErrorEvent.IO_ERROR, onImageIOError);</span></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">imageLoader.load(imageURLreq);</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #808080; font-style: italic;">}</span></li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onImageInit<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;"><span style="color: #000000; font-weight: bold;">var</span> image:FlickrImage = <span style="color: #0066CC;">this</span>._imageList<span style="color: #66cc66;">&#91;</span>photoIndex<span style="color: #66cc66;">&#93;</span>;</li>
				<li style="color:#26536A;">image.<span style="color: #006600;">image</span> = <span style="color: #0066CC;">this</span>.<span style="color: #006600;">imageLoader</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">photoIndex</span>++;</li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">//getNextPhoto();</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>
				<li style="color:#26536A;">&nbsp;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onImageIOError<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="color:#26536A;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">onFail</span> != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> onFail<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;"><span style="color: #66cc66;">&#125;</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;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> GetInfoComplete<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlickrResultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #0066CC;">e</span>.<span style="color: #006600;">success</span> &amp;amp;&amp;amp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onFail</span> != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> onFail<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;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">onGetInfo</span> != <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">onGetInfo</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">PhotoSet</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>FlickrImage.as　画像情報オブジェクト</p>
				<div class="igBar"><span id="lactionscript-8"><a href="#" onclick="javascript:showPlainTxt('actionscript-8'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-8">
				<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</li>
				<li style="color:#26536A;"><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;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">adobe</span>.<span style="color: #006600;">webapis</span>.<span style="color: #006600;">flickr</span>.<span style="color: #006600;">Photo</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">DisplayObject</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;"><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;"><span style="color: #808080; font-style: italic;">* ...</span></li>
				<li style="color:#26536A;"><span style="color: #808080; font-style: italic;">* @author okm</span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #808080; font-style: italic;">*/</span></li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> FlickrImage</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> id:<span style="color: #0066CC;">String</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> title:<span style="color: #0066CC;">String</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> latitude:<span style="color: #0066CC;">String</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> longitude:<span style="color: #0066CC;">String</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> url_m:<span style="color: #0066CC;">String</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> url_t:<span style="color: #0066CC;">String</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> width_t:<span style="color: #0066CC;">Number</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> height_t:<span style="color: #0066CC;">Number</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> width_m:<span style="color: #0066CC;">Number</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> height_m:<span style="color: #0066CC;">Number</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> image:DisplayObject;</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;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> FlickrImage<span style="color: #66cc66;">&#40;</span>photo:Photo<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;"><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">id</span> = photo.<span style="color: #006600;">id</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">title</span> = photo.<span style="color: #006600;">title</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">longitude</span> = photo.<span style="color: #006600;">longitude</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">latitude</span> = photo.<span style="color: #006600;">latitude</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">longitude</span> = photo.<span style="color: #006600;">longitude</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">url_m</span> = photo.<span style="color: #006600;">url_m</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">url_t</span> = photo.<span style="color: #006600;">url_t</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">width_m</span> = photo.<span style="color: #006600;">width_m</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">height_m</span> = photo.<span style="color: #006600;">height_m</span>;</li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">width_t</span> = photo.<span style="color: #006600;">width_t</span>;</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">this</span>.<span style="color: #006600;">height_t</span> = photo.<span style="color: #006600;">height_t</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>
				<li style="color:#26536A;"><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;</li>
				<li style="color:#26536A;"><span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/1070/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flashで緯度経度情報つきの画像情報をFlickrから受け取る。</title>
		<link>http://parpue.net/web/996</link>
		<comments>http://parpue.net/web/996#comments</comments>
		<pubDate>Sun, 12 Jul 2009 17:42:36 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[音楽]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[as3flickrlib]]></category>
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=996</guid>
		<description><![CDATA[				ちょっと前にも書いた気がするが、
				最近は画像に、撮影した場所の緯度経度情報が埋め込める。
				そんでもって、緯度経度の情報付きの画像を、
				Flickrに保存しておくことができる。
				とい [...]]]></description>
			<content:encoded><![CDATA[				<p>ちょっと前にも書いた気がするが、<br />
				最近は画像に、撮影した場所の緯度経度情報が埋め込める。<br />
				そんでもって、緯度経度の情報付きの画像を、<br />
				<a href="http://www.flickr.com/photos/parpue" target="_blank">Flickr</a>に保存しておくことができる。</p>
				<p>というわけで、Flickrに位置情報付きの画像を置いておいて、<br />
				Flash＋GoogleMaps上に展開とかしたいなーと思って調べてみたところ、<br />
				FlsahからFlickrに接続するための<a href="http://code.google.com/p/as3flickrlib/" target="_blank">as3flickrlib</a>というのを発見。<br />
				しかしこのライブラリが長いこと更新されていない・・・。</p>
				<p>というわけで、作りたいものの下調べがてら、<br />
				このライブラリで位置情報である、<br />
				ジオタグ付きの情報を取得できるようにするやり方を調べた。</p>
				<p><span id="more-996"></span></p>
				<p><del datetime="2009-07-13T03:20:47+00:00">Photos.as, PhotoSets.asの２つのファイル</del><br />
				（訂正）Photos.as, PhotoSets.as, MethodGroupHelper.asの３つのファイルを、<br />
				以下な感じで修正すれば、ジオタグを取得できる。</p>
				<p>■ Photos.as</p>
				<div class="igBar"><span id="lactionscript-15"><a href="#" onclick="javascript:showPlainTxt('actionscript-15'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-15">
				<div class="actionscript">
				<ol start="70" 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: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _notes:<span style="color: #0066CC;">Array</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> _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> _urls:<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: #808080; font-style: italic;">// okm add </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> _latitude:<span style="color: #0066CC;">String</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> _longitude:<span style="color: #0066CC;">String</span>; </li>
				</ol>
				</div>
				</div>
				</div>
				<div class="igBar"><span id="lactionscript-16"><a href="#" onclick="javascript:showPlainTxt('actionscript-16'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-16">
				<div class="actionscript">
				<ol start="543" 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: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">get</span> latitude<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> _latitude;</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; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">set</span> latitude<span style="color: #66cc66;">&#40;</span>value:<span style="color: #0066CC;">String</span><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; _latitude = value;</li>
				<li style="color:#26536A;">&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; <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; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">get</span> longitude<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</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;">return</span> _longitude;</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; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">set</span> longitude<span style="color: #66cc66;">&#40;</span>value:<span style="color: #0066CC;">String</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; _longitude = value;</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;">return</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>■PhotoSets.as</p>
				<div class="igBar"><span id="lactionscript-17"><a href="#" onclick="javascript:showPlainTxt('actionscript-17'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-17">
				<div class="actionscript">
				<ol start="609" 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: #808080; font-style: italic;">//　okm add</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getPhotosExtras<span style="color: #66cc66;">&#40;</span> photoset_id:<span style="color: #0066CC;">String</span> <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; MethodGroupHelper.<span style="color: #006600;">invokeMethod</span><span style="color: #66cc66;">&#40;</span> _service, getPhotos_result, </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #ff0000;">"flickr.photosets.getPhotos"</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">false</span>,</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> NameValuePair<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">"photoset_id"</span>, photoset_id <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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> NameValuePair<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">"extras"</span>, <span style="color: #ff0000;">"geo"</span> <span style="color: #66cc66;">&#41;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <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>
				</ol>
				</div>
				</div>
				</div>
				<p>
				extras にとりたい情報を適当に追加すれば、返してくれる情報も増える。</p>
				<p>■MethodGroupHelper.as</p>
				<div class="igBar"><span id="lactionscript-18"><a href="#" onclick="javascript:showPlainTxt('actionscript-18'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-18">
				<div class="actionscript">
				<ol start="84" 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: #b1b100;">for</span> each <span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> p:<span style="color: #0066CC;">XML</span> <span style="color: #b1b100;">in</span> <span style="color: #0066CC;">xml</span>.<span style="color: #006600;">photoset</span>.<span style="color: #006600;">photo</span> <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; <span style="color: #000000; font-weight: bold;">var</span> photo:Photo = <span style="color: #000000; font-weight: bold;">new</span> Photo<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; &nbsp; &nbsp; &nbsp; &nbsp; photo.<span style="color: #006600;">id</span> = p.@id.<span style="color: #0066CC;">toString</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; photo.<span style="color: #006600;">secret</span> = p.@secret.<span style="color: #0066CC;">toString</span><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; &nbsp; &nbsp; &nbsp; &nbsp; photo.<span style="color: #006600;">title</span> = p.@title.<span style="color: #0066CC;">toString</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; photo.<span style="color: #006600;">server</span> = <span style="color: #0066CC;">parseInt</span><span style="color: #66cc66;">&#40;</span> p.@server <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: #808080; font-style: italic;">// okm add</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; photo.<span style="color: #006600;">latitude</span> = p.@latitude.<span style="color: #0066CC;">toString</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; photo.<span style="color: #006600;">longitude</span> = p.@longitude.<span style="color: #0066CC;">toString</span><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; &nbsp; &nbsp; &nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; photoSet.<span style="color: #006600;">photos</span>.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span> photo <span style="color: #66cc66;">&#41;</span>;&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: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>あとは、↓な感じで情報を取得すればOK.</p>
				<div class="igBar"><span id="lactionscript-19"><a href="#" onclick="javascript:showPlainTxt('actionscript-19'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-19">
				<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;">fls = <span style="color: #000000; font-weight: bold;">new</span> FlickrService<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"APIキー"</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">photoSets = <span style="color: #000000; font-weight: bold;">new</span> PhotoSets<span style="color: #66cc66;">&#40;</span>fls<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;">fls.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>FlickrResultEvent.<span style="color: #006600;">PHOTOSETS_GET_PHOTOS</span>, GetPhptosComplete<span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">photoSets.<span style="color: #006600;">getPhotosExtras</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"SetsのID"</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;">〜〜〜〜</li>
				<li style="color:#26536A;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> GetPhptosComplete<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlickrResultEvent<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; <span style="color: #808080; font-style: italic;">//photoSetの写真のタイトルとURLを配列に格納</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:uint; i &lt;e.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">photoSet</span>.<span style="color: #006600;">photos</span>.<span style="color: #0066CC;">length</span> ;i++<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; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">photoSet</span>.<span style="color: #006600;">photos</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">photoSet</span>.<span style="color: #006600;">photos</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">id</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: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">photoSet</span>.<span style="color: #006600;">photos</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">latitude</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// 緯度経度も取得可能</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">photoSet</span>.<span style="color: #006600;">photos</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">longitude</span><span style="color: #66cc66;">&#41;</span>;&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; <span style="color: #66cc66;">&#125;</span></li>
				<li style="color:#26536A;"><span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>こんな感じで返してくれます。</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 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;rsp</span> <span style="color: #000066;">stat</span>=<span style="color: #ff0000;">"ok"</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;photoset</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"72157620666800332"</span> <span style="color: #000066;">primary</span>=<span style="color: #ff0000;">"3666954753"</span> <span style="color: #000066;">owner</span>=<span style="color: #ff0000;">"25111802@N08"</span> <span style="color: #000066;">ownername</span>=<span style="color: #ff0000;">"----"</span> <span style="color: #000066;">page</span>=<span style="color: #ff0000;">"1"</span> per_<span style="color: #000066;">page</span>=<span style="color: #ff0000;">"500"</span> <span style="color: #000066;">perpage</span>=<span style="color: #ff0000;">"500"</span> <span style="color: #000066;">pages</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">total</span>=<span style="color: #ff0000;">"24"</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;photo</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"3666954753"</span> <span style="color: #000066;">secret</span>=<span style="color: #ff0000;">"----"</span> <span style="color: #000066;">server</span>=<span style="color: #ff0000;">"3541"</span> <span style="color: #000066;">farm</span>=<span style="color: #ff0000;">"4"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"shimokita_0024"</span> <span style="color: #000066;">isprimary</span>=<span style="color: #ff0000;">"1"</span> <span style="color: #000066;">latitude</span>=<span style="color: #ff0000;">"35.665071"</span> <span style="color: #000066;">longitude</span>=<span style="color: #ff0000;">"139.66531"</span> <span style="color: #000066;">accuracy</span>=<span style="color: #ff0000;">"16"</span> place_<span style="color: #000066;">id</span>=<span style="color: #ff0000;">"dtJZJhabCZm.78Qz9A"</span> <span style="color: #000066;">woeid</span>=<span style="color: #ff0000;">"28528566"</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;photo</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"3667761046"</span> <span style="color: #000066;">secret</span>=<span style="color: #ff0000;">"----"</span> <span style="color: #000066;">server</span>=<span style="color: #ff0000;">"3338"</span> <span style="color: #000066;">farm</span>=<span style="color: #ff0000;">"4"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"shimokita_0023"</span> <span style="color: #000066;">isprimary</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">latitude</span>=<span style="color: #ff0000;">"35.665002"</span> <span style="color: #000066;">longitude</span>=<span style="color: #ff0000;">"139.665412"</span> <span style="color: #000066;">accuracy</span>=<span style="color: #ff0000;">"16"</span> place_<span style="color: #000066;">id</span>=<span style="color: #ff0000;">"dtJZJhabCZm.78Qz9A"</span> <span style="color: #000066;">woeid</span>=<span style="color: #ff0000;">"28528566"</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;photo</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"3666954587"</span> <span style="color: #000066;">secret</span>=<span style="color: #ff0000;">"----"</span> <span style="color: #000066;">server</span>=<span style="color: #ff0000;">"3323"</span> <span style="color: #000066;">farm</span>=<span style="color: #ff0000;">"4"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"shimokita_0022"</span> <span style="color: #000066;">isprimary</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">latitude</span>=<span style="color: #ff0000;">"35.663729"</span> <span style="color: #000066;">longitude</span>=<span style="color: #ff0000;">"139.666517"</span> <span style="color: #000066;">accuracy</span>=<span style="color: #ff0000;">"16"</span> place_<span style="color: #000066;">id</span>=<span style="color: #ff0000;">"INaV6gKbCZlVrYnlFA"</span> <span style="color: #000066;">woeid</span>=<span style="color: #ff0000;">"28528453"</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;photo</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"3667760848"</span> <span style="color: #000066;">secret</span>=<span style="color: #ff0000;">"----"</span> <span style="color: #000066;">server</span>=<span style="color: #ff0000;">"2563"</span> <span style="color: #000066;">farm</span>=<span style="color: #ff0000;">"3"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"shimokita_0020"</span> <span style="color: #000066;">isprimary</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">latitude</span>=<span style="color: #ff0000;">"35.663106"</span> <span style="color: #000066;">longitude</span>=<span style="color: #ff0000;">"139.667609"</span> <span style="color: #000066;">accuracy</span>=<span style="color: #ff0000;">"16"</span> place_<span style="color: #000066;">id</span>=<span style="color: #ff0000;">"INaV6gKbCZlVrYnlFA"</span> <span style="color: #000066;">woeid</span>=<span style="color: #ff0000;">"28528453"</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;photo</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"3667760770"</span> <span style="color: #000066;">secret</span>=<span style="color: #ff0000;">"----"</span> <span style="color: #000066;">server</span>=<span style="color: #ff0000;">"3300"</span> <span style="color: #000066;">farm</span>=<span style="color: #ff0000;">"4"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"shimokita_0021"</span> <span style="color: #000066;">isprimary</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">latitude</span>=<span style="color: #ff0000;">"35.662354"</span> <span style="color: #000066;">longitude</span>=<span style="color: #ff0000;">"139.666976"</span> <span style="color: #000066;">accuracy</span>=<span style="color: #ff0000;">"16"</span> place_<span style="color: #000066;">id</span>=<span style="color: #ff0000;">"INaV6gKbCZlVrYnlFA"</span> <span style="color: #000066;">woeid</span>=<span style="color: #ff0000;">"28528453"</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;/photoset<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;/rsp<span style="font-weight: bold; color: black;">&gt;</span></span></span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>次は、実際にFlashでGoogleMapsへの展開を挑戦予定！</p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/996/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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-22"><a href="#" onclick="javascript:showPlainTxt('actionscript-22'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-22">
				<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-25"><a href="#" onclick="javascript:showPlainTxt('xml-25'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-25">
				<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-26"><a href="#" onclick="javascript:showPlainTxt('xml-26'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-26">
				<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-28"><a href="#" onclick="javascript:showPlainTxt('xml-28'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-28">
				<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で引き続き遊んでみる</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-30"><a href="#" onclick="javascript:showPlainTxt('actionscript-30'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-30">
				<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-33"><a href="#" onclick="javascript:showPlainTxt('xml-33'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-33">
				<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-34"><a href="#" onclick="javascript:showPlainTxt('xml-34'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-34">
				<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>DegrafaでFlexコンポーネントのSkin作成解説ビデオがわかりやすい</title>
		<link>http://parpue.net/web/473</link>
		<comments>http://parpue.net/web/473#comments</comments>
		<pubDate>Fri, 27 Mar 2009 01:35:11 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[Degrafa]]></category>
		<category><![CDATA[Flex3]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=473</guid>
		<description><![CDATA[				
				http://www.asfusion.com/examples/item/skinning-with-degrafa-1
				昨日に引き続き、Degrafa。今度はコンポーネントSkin作ってみよ [...]]]></description>
			<content:encoded><![CDATA[				<p><img src="http://parpue.net/wp-content/uploads/2009/03/skin_button.png" alt="skin_button" title="skin_button" width="283" height="195" class="alignnone size-full wp-image-474" /></p>
				<p><a href="http://www.asfusion.com/examples/item/skinning-with-degrafa-1" target="_blank">http://www.asfusion.com/examples/item/skinning-with-degrafa-1</a></p>
				<p>昨日に引き続き、Degrafa。今度はコンポーネントSkin作ってみようと、<br />
				なんか参考になるもんないかなーと、探してみたら、これがわかりやすい。<br />
				サンプルプロジェクトファイルもダウンロードできます。</p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/473/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-39"><a href="#" onclick="javascript:showPlainTxt('xml-39'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-39">
				<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-40"><a href="#" onclick="javascript:showPlainTxt('xml-40'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-40">
				<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-41"><a href="#" onclick="javascript:showPlainTxt('xml-41'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-41">
				<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-42"><a href="#" onclick="javascript:showPlainTxt('xml-42'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-42">
				<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>
	</channel>
</rss>

