<?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; ニコクラウド</title>
	<atom:link href="http://parpue.net/tag/nicocloud/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>FlashDevelopで作ってみた（３） actionscript3移植</title>
		<link>http://parpue.net/web/19</link>
		<comments>http://parpue.net/web/19#comments</comments>
		<pubDate>Thu, 26 Jun 2008 05:31:10 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[ニコクラウド]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=19</guid>
		<description><![CDATA[				前回のエントリで作ったものを、
				actionscript2 から actionscript3 で書き直してみました。
				これからas2のFlashをas3で書き直し始める場合の参考になれば幸いです。 [...]]]></description>
			<content:encoded><![CDATA[				<p>前回のエントリで作ったものを、<br />
				actionscript2 から actionscript3 で書き直してみました。<br />
				これからas2のFlashをas3で書き直し始める場合の参考になれば幸いです。</p>
				<p>↓flex2でコンパイルしたので、<br />
				FlashPlayerバージョン9以降しか表示できません。</p>
				<div style="position:relative;width:300px;height:224px;margin-left:auto;margin-right:auto"><img class="aligncenter size-medium wp-image-12" title="fuji" src="http://parpue.net/wp-content/image3151-300x224.jpg" alt="fuji_zawa" width="300" height="224" />
				<div style="position:absolute;top:0;left:0;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="224"><param name="id" value="NicoCloud" /><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><param name="src" value="http://parpue.net/wp-content/nicocloud_as3.swf?url=http://parpue.net/wp-content/zawa.xml&#038;maxSpeed=20"/><embed id="NicoCloud" type="application/x-shockwave-flash" width="300" height="224" src="http://parpue.net/wp-content/nicocloud_as3.swf?url=http://parpue.net/wp-content/zawa.xml&amp;maxSpeed=20" wmode="transparent" scale="noscale" quality="high" allowscriptaccess="sameDomain" align="middle"></embed></object></div>
				</div>
				<div align="center">見た目変わんないけどちょっと軽い？</div>
				<p><a href='http://parpue.net/wp-content/nicocloud_as3.zip'>→プロジェクトをダウンロード（SWF入り）</a></p>
				<p>as2コンパイラのMTASCと違って、<br />
				細かいWarningいっぱいだしてくれるので（出さないようにもできると思うけど）、<br />
				戻り値とか引数の型の定義とか、ちゃんとしましたｗ</p>
				<p><span id="more-19"></span></p>
				<p><a href='http://parpue.net/wp-content/nico_as3.png' rel='shadowbox[post-19];player=img;'><img src="http://parpue.net/wp-content/nico_as3-300x248.png" alt="今度はAS3" title="nico_as3" width="300" height="248" class="alignnone size-medium wp-image-21" /></a><br />
				今度はActionScript 3 のプロジェクトとして作成。</p>
				<p>■ ローカルファイルを読み込むにも、セキュリティ設定が必要<br />
				まず、ローカルでテストするにも、ローカルのXMLファイルを読み込むためのセキュリティの設定が必要です。</p>
				<p><a href="http://livedocs.adobe.com/flex/2_jp/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00001373.html">→参考</a></p>
				<p>C:\WINDOWS\system32\Macromed\Flash\FlashPlayerTrust\test.cfg</p>
				<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">CODE:</span>
				<div id="code-6">
				<div class="code">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"># 信頼できるファイルのパスを記述</li>
				<li style="color:#26536A;">C:\Documents and Settings\Administrator\workspace\NicoCloud_as3\tags.<span style="">xml</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>■ NicCloud class の変更<br />
				MovieClipを使わずに Spriteを継承したクラスとしてNicoCloudクラスを用意します。</p>
				<p>actionscript3では、既存のXMLクラスに当たるものを下位互換としてXMLDocumentクラスとして残され、<br />
				XMLクラスが新しくなっています。</p>
				<p>今回はせっかくなので、XMLDocumentではなくXMLクラスを使いました。<br />
				as2ではXMLクラスで直接ファイルを読み込めたのですが、as3ではファイルの読み込みには、<br />
				別のURLLoaderクラスを使用するようになっています。</p>
				<p>＊比較 as2 NicoCloud.as</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 start="9" style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">tagXML = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">XML</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; tagXML.<span style="color: #0066CC;">ignoreWhite</span> = <span style="color: #000000; font-weight: bold;">true</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; tagXML.<span style="color: #0066CC;">onLoad</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>result:<span style="color: #0066CC;">Boolean</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; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>result<span style="color: #66cc66;">&#41;</span> ref.<span style="color: #006600;">onLoadHandler</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</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;">"(-_-)"</span><span style="color: #66cc66;">&#41;</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;">&nbsp; &nbsp; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">url</span>:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">_root</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">"url"</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; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</span> != <span style="color: #0066CC;">undefined</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; tagXML.<span style="color: #0066CC;">load</span><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;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; tagXML.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"tags.xml"</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; <span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p> as3 NicoCloud.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 start="22" 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> <span style="color: #0066CC;">url</span>:<span style="color: #0066CC;">String</span> = loaderInfo.<span style="color: #006600;">parameters</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">"url"</span><span style="color: #66cc66;">&#93;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</span> == <span style="color: #000000; font-weight: bold;">null</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #0066CC;">url</span> = <span style="color: #ff0000;">"tags.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; </li>
				<li style="color:#26536A;">&nbsp; &nbsp; <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;">&nbsp; &nbsp; tagFileLoder = <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;">&nbsp; &nbsp; tagFileLoder.<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>
				</ol>
				</div>
				</div>
				</div>
				<p>
				URLLoaderクラスを使わないでファイルをロード。</p>
				<p> as3 NicoCloud.as</p>
				<div class="igBar"><span id="lactionscript-9"><a href="#" onclick="javascript:showPlainTxt('actionscript-9'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-9">
				<div class="actionscript">
				<ol start="45" style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">tagXML = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">XML</span><span style="color: #66cc66;">&#40;</span>tagFileLoder.<span style="color: #0066CC;">data</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> xmlNodes:XMLList = tagXML.<span style="color: #006600;">child</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"item"</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; </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:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>; i &lt;xmlNodes.<span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</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: #000000; font-weight: bold;">var</span> itemObject:<span style="color: #0066CC;">Object</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> node:<span style="color: #0066CC;">XML</span> = xmlNodes<span style="color: #66cc66;">&#91;</span>i<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; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> tag:Tag = <span style="color: #000000; font-weight: bold;">new</span> Tag<span style="color: #66cc66;">&#40;</span>node.<span style="color: #006600;">tag</span>, node.<span style="color: #0066CC;">size</span>, node.<span style="color: #0066CC;">url</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>tag<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; tag.<span style="color: #006600;">startCloud</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>
				XMLクラスは単純にパースするためだけに。</p>
				<p>移動する文字用のTagクラスは、<br />
				TextFieldクラスとTextFormatクラス、DropShadowFilterがほぼas2と同じように使えたので、<br />
				そんなに変更はありませんが、<br />
				こちらもMovieClipを使わずにSpriteを継承したクラスとし、<br />
				NicoCloud側から生成されたタイミングでaddChildするようにしています。</p>
				<p>URLに記述があった場合、クリックでジャンプさせるんですが、<br />
				イベント割り当てただけじゃSprite上で、マウスカーソルを指の形状になりません。<br />
				ここで、ちょっと悩みました。</p>
				<p>as3 Tag.as</p>
				<div class="igBar"><span id="lactionscript-10"><a href="#" onclick="javascript:showPlainTxt('actionscript-10'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
				<div id="actionscript-10">
				<div class="actionscript">
				<ol start="34" 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;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</span> != <span style="color: #ff0000;">""</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">buttonMode</span> = <span style="color: #000000; font-weight: bold;">true</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;">this</span>.<span style="color: #0066CC;">useHandCursor</span> = <span style="color: #000000; font-weight: bold;">true</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">mouseChildren</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; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">ROLL_OVER</span>, <span style="color: #000000; font-weight: bold;">function</span><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><span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, <span style="color: #000000; font-weight: bold;">function</span><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; <span style="color: #000000; font-weight: bold;">var</span> urlRequest: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="color:#26536A;">&nbsp; &nbsp; &nbsp; &nbsp; navigateToURL<span style="color: #66cc66;">&#40;</span> urlRequest <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; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</li>
				<li style="color:#26536A;"><span style="color: #66cc66;">&#125;</span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>
				buttonMode と useHandCursor を true はわかるけど、<br />
				mouseChildren をfalseにしないとなのは…？<br />
				結構めんどくさい。</p>
				<p>今までAS2で仕事で作ったものもちょくちょくAS3に移植しているのですが、<br />
				クラスベースで作っていたので、割とすんなりできています。</p>
				<p>AS3でFullFlashサイトつくってみたいなー。</p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/19/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlashDevelopで作ってみた（２） プロジェクトファイル</title>
		<link>http://parpue.net/web/15</link>
		<comments>http://parpue.net/web/15#comments</comments>
		<pubDate>Wed, 25 Jun 2008 09:04:48 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[ニコクラウド]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=15</guid>
		<description><![CDATA[				前のエントリで書いた、
				ニコニコ風タグクラウドのFlashDevelopプロジェクトファイルです。
				■ダウンロード
				FlashDevelopによる開発については、
				書いてるサイトい [...]]]></description>
			<content:encoded><![CDATA[				<p>前のエントリで書いた、<br />
				ニコニコ風タグクラウドのFlashDevelopプロジェクトファイルです。</p>
				<p>■<a href='http://parpue.net/wp-content/nicocloud_as2.zip'>ダウンロード</a></p>
				<p>FlashDevelopによる開発については、<br />
				書いてるサイトいっぱいあるので、検索して探してみてください。</p>
				<p>FlashDevelop メニュー　Project から Open Project で<br />
				NicoCloud.as2proj を開けば、プロジェクトをインポートできると思います。</p>
				<p>単純なコードなので、フォントカラーや、文字の流れる動作などは<br />
				簡単に変えられると思います。</p>
				<p><a href='http://parpue.net/wp-content/nico_11.png' rel='shadowbox[post-15];player=img;'><img src="http://parpue.net/wp-content/nico_11-295x300.png" alt="FlashDevelop" title="FlashDevelop" width="295" height="300" class="alignnone size-medium wp-image-17" /></a></p>
				<p>簡単に解説すると、<br />
				メインの NicoCloudクラス と タグひとつ分の Tagクラスの二つのクラスでできています。</p>
				<p>NicoCloudで対象XMLを読み込んで、<br />
				XMLのロードが完了したら、XMLに記述している分だけTagクラスのインスタンスを生成して、<br />
				流す！　　という感じです。</p>
				<p>単純だし、とりあえず今から actionscript3 で書き直してみようと思う。</p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlashDevelopで作ってみた（１） ニコニコ風タグクラウド 配布</title>
		<link>http://parpue.net/web/11</link>
		<comments>http://parpue.net/web/11#comments</comments>
		<pubDate>Tue, 24 Jun 2008 08:50:07 +0000</pubDate>
		<dc:creator>okm</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[ニコクラウド]]></category>

		<guid isPermaLink="false">http://parpue.net/?p=11</guid>
		<description><![CDATA[				FlashDevelopだけでニコニコ風タグクラウド作ってみた。
				…ので公開してみます。
				
				
				
				こんなん
				
				お好きな画像の上にお好きなサイズで、表示すること [...]]]></description>
			<content:encoded><![CDATA[				<p>FlashDevelopだけでニコニコ風タグクラウド作ってみた。<br />
				…ので公開してみます。</p>
				<div style="position:relative;width:300px;height:224px;margin-left:auto;margin-right:auto"><img class="aligncenter size-medium wp-image-12" title="fuji" src="http://parpue.net/wp-content/image3151-300x224.jpg" alt="fuji_zawa" width="300" height="224" /></p>
				<div style="position:absolute;top:0;left:0;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="224" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="id" value="NicoCloud" /><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><param name="src" value="http://parpue.net/wp-content/nicocloud.swf?url=http://parpue.net/wp-content/zawa.xml&#038;maxSpeed=20"/><embed id="NicoCloud" type="application/x-shockwave-flash" width="300" height="224" src="http://parpue.net/wp-content/nicocloud.swf?url=http://parpue.net/wp-content/zawa.xml&amp;maxSpeed=20" wmode="transparent" scale="noscale" quality="high" allowscriptaccess="sameDomain" align="middle"></embed></object></div>
				</div>
				<div align="center">こんなん</div>
				<p><br/><br />
				お好きな画像の上にお好きなサイズで、表示することができます。<br />
				ちなみに <a href="http://millon.jp/">millon.jp</a> 用に作りました。</p>
				<p>■ダウンロード<br />
				<a href="http://parpue.net/wp-content/NicoCloud_b1.zip" target=_blank">NicoCloud ダウンロード</a></p>
				<p>■置き方</p>
				<div class="igBar"><span id="lhtml-13"><a href="#" onclick="javascript:showPlainTxt('html-13'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">HTML:</span>
				<div id="html-13">
				<div class="html">
				<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;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">"position:relative;width:画像の縦サイズpx;height:画像の横サイズpx;"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"背景画像"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"画像の幅サイズ"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"画像の縦サイズ"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">"position:absolute;top:0;left:0;"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><a href="http://december.com/html/4/element/object.html"><span style="color: #000000; font-weight: bold;">&lt;object</span></a> <span style="color: #000066;">classid</span>=<span style="color: #ff0000;">"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"画像の横サイズ"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"画像の縦サイズ"</span> <span style="color: #000066;">codebase</span>=<span style="color: #ff0000;">"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/param.html"><span style="color: #000000; font-weight: bold;">&lt;param</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"id"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"NicoCloud"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></li>
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><a href="http://december.com/html/4/element/param.html"><span style="color: #000000; font-weight: bold;">&lt;param</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"wmode"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"transparent"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><a href="http://december.com/html/4/element/param.html"><span style="color: #000000; font-weight: bold;">&lt;param</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"src"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"NicoCloud.swf?url=タグファイルXML&amp;minSpeed=最低スピード&amp;maxSpeed=最高スピード"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></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="color: #808080; font-style: italic;">&lt;!-- FireFox用 --&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;">&lt;embed <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"NicoCloud"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"application/x-shockwave-flash"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"画像の横サイズ"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"画像の縦サイズ"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"NicoCloud.swf?url=タグファイルXML&amp;minSpeed=最低スピード&amp;maxSpeed=最高スピード"</span> wmode=<span style="color: #ff0000;">"transparent"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span></a>/embed&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="color: #000000; font-weight: bold;">&lt;/object&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&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="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>
				画像のサイズや、画像ファイル名は該当する値に変えてください。<br />
				ダウンロードファイル内にサンプルあります。<br />
				値を省略した場合はそれぞれ、以下の値に置き換えられます。</p>
				<p>url=tags.xml<br />
				minSpeed=5<br />
				maxSpeed=10</p>
				<p>表示するタグは以下のようなXMLファイルで用意します。</p>
				<div class="igBar"><span id="lxml-14"><a href="#" onclick="javascript:showPlainTxt('xml-14'); return false;">&gt;&gt;text</a></span></div>
				<div class="syntax_hilite"><span class="langName">XML:</span>
				<div id="xml-14">
				<div class="xml">
				<ol style="margin:0px; padding:0px" >
				<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"UTF-8"</span> ?<span style="font-weight: bold; color: black;">&gt;</span></span></li>
				<li style="color:#26536A;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;root<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;item<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tag<span style="font-weight: bold; color: black;">&gt;</span></span></span>ざわ…<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tag<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;size<span style="font-weight: bold; color: black;">&gt;</span></span></span>10<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/size<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;url<span style="font-weight: bold; color: black;">&gt;</span></span></span>/dummy/1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/url<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;/item<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;item<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;tag<span style="font-weight: bold; color: black;">&gt;</span></span></span>ざわ…<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tag<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;size<span style="font-weight: bold; color: black;">&gt;</span></span></span>10<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/size<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;/item<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;item<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;tag<span style="font-weight: bold; color: black;">&gt;</span></span></span>ざわ…<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tag<span style="font-weight: bold; color: black;">&gt;</span></span></span></li>
				<li style="color:#26536A;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;size<span style="font-weight: bold; color: black;">&gt;</span></span></span>12<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/size<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;/item<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;/root<span style="font-weight: bold; color: black;">&gt;</span></span></span> </li>
				</ol>
				</div>
				</div>
				</div>
				<p>
				tagには　タグの名前<br />
				sizeには　タグのフォントサイズ<br />
				urlには、タグをクリックした際のジャンプ先のリンクを記述します。<br />
				urlが省略された場合、タグクリックでジャンプしません。</p>
				<p>なお、スピードを大きくしたり、表示するタグの数が多いと、、、重くなりますｗ</p>
				<p>引き続きエントリで、ソースコード公開しようと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://parpue.net/web/11/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

