<?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>Hangun's World - Blog</title>
	<atom:link href="http://hangunsworld.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://hangunsworld.com/blog</link>
	<description>about ActionScript, Flash, Web and more...</description>
	<lastBuildDate>Wed, 01 Feb 2012 01:36:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>레이어 마스크와 addChild() 문제</title>
		<link>http://hangunsworld.com/blog/1176</link>
		<comments>http://hangunsworld.com/blog/1176#comments</comments>
		<pubDate>Fri, 20 Jan 2012 16:15:01 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[addChild]]></category>
		<category><![CDATA[Layer Mask]]></category>
		<category><![CDATA[Timeline]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=1176</guid>
		<description><![CDATA[플래시의 타임라인에서 레이어 마스크를 사용하는 경우에, addChild() 메소드 사용 시에 주의가 필요합니다. 다음과 같이 레이어 마스크를 적용한 무비에, 액션스크립트로 생성한 무비클립을 애드해 보겠습니다. 1 2 3 4 5 6 var mc:MovieClip = new MovieClip&#40;&#41;; var g:Graphics = mc.graphics; g.beginFill&#40;0xFF0000&#41;; g.drawRect&#40;50, 50, 200, 100&#41;; g.endFill&#40;&#41;; addChild&#40;mc&#41;; 그러면 다음과 같이, 애드된 무비클립도 마스크가 적용되어 버리는 문제가 생깁니다. <a href='http://hangunsworld.com/blog/1176'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>플래시의 타임라인에서 레이어 마스크를 사용하는 경우에, <code>addChild()</code> 메소드 사용 시에 주의가 필요합니다.<br />
다음과 같이 레이어 마스크를 적용한 무비에, 액션스크립트로 생성한 무비클립을 애드해 보겠습니다.</p>
<p><a href="http://hangunsworld.com/blog/wp-content/uploads/2012/01/layer.jpg"><img src="http://hangunsworld.com/blog/wp-content/uploads/2012/01/layer.jpg" alt="" title="Timeline layer mask" width="320" height="380" class="alignnone size-full wp-image-1178" /></a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> mc<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> g<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Graphics</span> = mc<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">;</span>
g<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0xFF0000<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
g<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
g<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>mc<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>그러면 다음과 같이, 애드된 무비클립도 마스크가 적용되어 버리는 문제가 생깁니다.</p>
<p><a href="http://hangunsworld.com/blog/wp-content/uploads/2012/01/mask.jpg"><img src="http://hangunsworld.com/blog/wp-content/uploads/2012/01/mask.jpg" alt="" title="mask" width="570" height="462" class="alignnone size-full wp-image-1179" /></a></p>
<p>아마도 Layer 2와 Layer 1 사이로 애드가 되면서, 마스크가 씌워지는 것으로 보입니다.</p>
<p>Layer 1 위에 다른 객체가 위치한 경우에는 마스크되지 않고 정상적으로 보여집니다. 또는 <code>addChildAt(mc, 0)</code>와 같이 사용해도 문제가 발생하지 않습니다.<br />
레이어 마스크를 사용할 때에는 이런 부분을 염두에 두고 개발해야 겠네요.</p>
]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/1176/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3으로 끊김없이 사운드 루프 실행하기</title>
		<link>http://hangunsworld.com/blog/1161</link>
		<comments>http://hangunsworld.com/blog/1161#comments</comments>
		<pubDate>Tue, 20 Dec 2011 15:45:53 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Event.SOUND_COMPLETE]]></category>
		<category><![CDATA[Gapless]]></category>
		<category><![CDATA[Loop]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[Timer]]></category>
		<category><![CDATA[TimerEvent.TIMER]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=1161</guid>
		<description><![CDATA[Gapless sound looping in ActionScript 3.0 보통 사운드 루핑을 만들 때 Event.SOUND_COMPLETE 이벤트나 Sound.play(0, 999);를 사용할텐데요. 이 경우에 음악이 재생되는 사이에 약간의 틈이 발생합니다. 다음 플래시 무비처럼 말이죠. 이 파일은 아래의 코드와 같이, Event.SOUND_COMPLETE를 사용하여 사운드를 루프시키고 있습니다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <a href='http://hangunsworld.com/blog/1161'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Gapless sound looping in ActionScript 3.0</strong></p>
<p>보통 사운드 루핑을 만들 때 <code>Event.SOUND_COMPLETE</code> 이벤트나 <code>Sound.play(0, 999);</code>를 사용할텐데요. 이 경우에 음악이 재생되는 사이에 약간의 틈이 발생합니다. 다음 플래시 무비처럼 말이죠.<br />
<script type="text/javascript">insertFlashObject('/blog/wp-content/uploads/2011/12/loop_sound_complete.swf', 220, 140);</script></p>
<p>이 파일은 아래의 코드와 같이, <code>Event.SOUND_COMPLETE</code>를 사용하여 사운드를 루프시키고 있습니다.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.media</span><span style="color: #000066; font-weight: bold;">.*;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.utils</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Timer</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> snd<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sound</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">loop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> chn<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">SoundChannel</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> playSound<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>chn<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
		chn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">SOUND_COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> sndListener<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
	chn = snd<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	chn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">SOUND_COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> sndListener<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> sndListener<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	playSound<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
lbl<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Loop with Event.SOUND_COMPLETE&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
btn2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
btn1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> clickListener1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
btn2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> clickListener2<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #339966; font-weight: bold;">function</span> clickListener1<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	playSound<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	btn1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
	btn2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span> clickListener2<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	btn1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
	btn2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
	chn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><span id="more-1161"></span>이 문제를 해결하기 위해서 이것저것 테스트 해 보다가, Timer를 사용하여 현재 재생중인 음악이 끝나기 전에 미리 새로운 음악을 재생시켜 주어서, 틈이 생기지 않도록 하는 방법을 생각하게 되었습니다. 아래의 플래시 무비에서 그 결과를 확인할 수 있습니다.<br />
<script type="text/javascript">insertFlashObject('/blog/wp-content/uploads/2011/12/loop_timer.swf', 220, 140);</script></p>
<p>사용된 코드는 다음과 같습니다.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.media</span><span style="color: #000066; font-weight: bold;">.*;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.*;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.utils</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Timer</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> snd<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sound</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">loop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> chn<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">SoundChannel</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">timer</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Timer</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Timer</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">timer</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">TimerEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TIMER</span><span style="color: #000066; font-weight: bold;">,</span> timerListener<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> timerListener<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TimerEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>chn <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> chn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">position</span> <span style="color: #000066; font-weight: bold;">&gt;</span> snd<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">450</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
		playSound<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> playSound<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span> <span style="color: #004993;">timer</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">running</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
		<span style="color: #004993;">timer</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
	chn = snd<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
lbl<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Loop with TimerEvent.TIMER&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
btn2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
btn1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> clickListener1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
btn2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> clickListener2<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #339966; font-weight: bold;">function</span> clickListener1<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	playSound<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	btn1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
	btn2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span> clickListener2<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	btn1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
	btn2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
	chn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #004993;">timer</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">reset</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/1161/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>XML에 어트리뷰트 추가하기</title>
		<link>http://hangunsworld.com/blog/1144</link>
		<comments>http://hangunsworld.com/blog/1144#comments</comments>
		<pubDate>Tue, 06 Dec 2011 12:02:42 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Attribute]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=1144</guid>
		<description><![CDATA[XML에 차일드 노드를 추가하는 것은 XML.appendChild() 메소드를 사용하면 되는데, 공식적으로 속성(attribute)을 추가하는 메소드는 없습니다. 그래서 구글로 검색해 보니, 다음과 같은 방법으로 간단히 속성을 추가할 수가 있네요. var xml:XML = new XML&#40;&#60;root /&#62;&#41;; xml.@newAtrb = &#34;value&#34;; trace&#40;xml.toXMLString&#40;&#41;&#41;; // output: &#60;root newAtrb=&#34;value&#34;/&#62;]]></description>
			<content:encoded><![CDATA[<p>XML에 차일드 노드를 추가하는 것은 XML.appendChild() 메소드를 사용하면 되는데, 공식적으로 속성(attribute)을 추가하는 메소드는 없습니다.</p>
<p>그래서 구글로 검색해 보니, 다음과 같은 방법으로 간단히 속성을 추가할 수가 있네요.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> xml<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">XML</span><span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">&lt;</span>root <span style="color: #000066; font-weight: bold;">/&gt;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
xml<span style="color: #000066; font-weight: bold;">.</span>@newAtrb = <span style="color: #990000;">&quot;value&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>xml<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toXMLString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #009900; font-style: italic;">// output: &lt;root newAtrb=&quot;value&quot;/&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/1144/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>후쿠하라 키미에 앨범 도착</title>
		<link>http://hangunsworld.com/blog/1134</link>
		<comments>http://hangunsworld.com/blog/1134#comments</comments>
		<pubDate>Thu, 01 Dec 2011 05:40:05 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[のろのらのらねこ]]></category>
		<category><![CDATA[シティライト]]></category>
		<category><![CDATA[福原希己江]]></category>
		<category><![CDATA[笑門来福]]></category>
		<category><![CDATA[후쿠하라 키미에]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=1134</guid>
		<description><![CDATA[최근 후쿠하라 키미에 관련 글로 도배가 되는 분위기네요. 어쨋든, 11월 초에 주문했던 앨범 2개가 드디어 왔습니다. 두 번째 앨범인 「笑門来福」를 다시 제작하느라 배송이 늦어져서, 지난주에 발송했다는 메일이 왔는데, 오늘 도착했군요. 심야식당 2에 나오기 시작하면서, 팬이 늘어나는가 봅니다. 첫 번째 앨범인 「のろのらのらねこ」 두 번째 앨범 「笑門来福」 이건 CD 빠지지 않도록 집어놓은 클립. 사소한 아이템이지만 고양이 모양 <a href='http://hangunsworld.com/blog/1134'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>최근 후쿠하라 키미에 관련 글로 도배가 되는 분위기네요.<br />
어쨋든, 11월 초에 주문했던 앨범 2개가 드디어 왔습니다. 두 번째 앨범인 「笑門来福」를 다시 제작하느라 배송이 늦어져서, 지난주에 발송했다는 메일이 왔는데, 오늘 도착했군요. 심야식당 2에 나오기 시작하면서, 팬이 늘어나는가 봅니다.</p>
<p>첫 번째 앨범인 「のろのらのらねこ」<br />
<img src="http://hangunsworld.com/blog/wp-content/uploads/2011/12/01_noronoranoraneko.jpg" alt="" title="「のろのらのらねこ」" width="650" height="550" class="alignnone size-full wp-image-1135" /></p>
<p><span id="more-1134"></span><img src="http://hangunsworld.com/blog/wp-content/uploads/2011/12/02_noronoranoraneko.jpg" alt="" title="「のろのらのらねこ」" width="650" height="450" class="alignnone size-full wp-image-1136" /></p>
<p>두 번째 앨범 「笑門来福」<br />
<img src="http://hangunsworld.com/blog/wp-content/uploads/2011/12/03_ShoMonRaiFuku.jpg" alt="" title="「笑門来福」" width="650" height="640" class="alignnone size-full wp-image-1137" /></p>
<p><img src="http://hangunsworld.com/blog/wp-content/uploads/2011/12/04_ShoMonRaiFuku.jpg" alt="" title="「笑門来福」" width="650" height="485" class="alignnone size-full wp-image-1138" /><br />
이건 CD 빠지지 않도록 집어놓은 클립. 사소한 아이템이지만 고양이 모양 ^^<br />
<img src="http://hangunsworld.com/blog/wp-content/uploads/2011/12/05_ShoMonRaiFuku.jpg" alt="" title="「笑門来福」 Clip" width="300" height="240" class="alignnone size-full wp-image-1139" /></p>
<p>그리고 배송이 늦어서 미안하다고 넣어준 선물인 듯한 シティライト라는 그룹의 앨범. Present for you라고 스티커 붙여 놨네요. 그런데 배송중에 케이스가 깨졌어요 ㅠㅠ 다행히 후쿠하라상의 CD는 이상무<br />
<img src="http://hangunsworld.com/blog/wp-content/uploads/2011/12/06_present.jpg" alt="" title="シティライト" width="650" height="550" class="alignnone size-full wp-image-1140" /></p>
<p><img src="http://hangunsworld.com/blog/wp-content/uploads/2011/12/07_present.jpg" alt="" title="シティライト" width="650" height="450" class="alignnone size-full wp-image-1141" /></p>
]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/1134/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>후쿠하라 키미에, 새 앨범 『おいしいうた』 12월 28일 발매</title>
		<link>http://hangunsworld.com/blog/1126</link>
		<comments>http://hangunsworld.com/blog/1126#comments</comments>
		<pubDate>Sat, 26 Nov 2011 13:05:41 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[심야식당]]></category>
		<category><![CDATA[후쿠하라 키미에]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=1126</guid>
		<description><![CDATA[후쿠하라 키미에 (福原希己江)의 새 앨범 『おいしいうた』가 12월 28일 발매 됩니다. 기존의 2개의 미니앨범 수록곡 일부를 포함하여, 드라마 심야식당2 삽입곡들로 채워져 있네요.]]></description>
			<content:encoded><![CDATA[<p><img src="http://hangunsworld.com/blog/wp-content/uploads/2011/11/oishiiuta.png" alt="" title="『おいしいうた』" width="406" height="406" class="alignnone size-full wp-image-1127" /><br />
<a href="http://www.fukuharakimie.com/info/biography">후쿠하라 키미에 (福原希己江)</a>의 새 앨범 <a href="http://www.fukuharakimie.com/oishiiuta/index.html">『おいしいうた』</a>가 12월 28일 발매 됩니다. 기존의 2개의 미니앨범 수록곡 일부를 포함하여, <a href="http://www.meshiya.tv/">드라마 심야식당2</a> 삽입곡들로 채워져 있네요.</p>
]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/1126/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

