<?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 &#187; BMPFunctions</title>
	<atom:link href="http://hangunsworld.com/blog/tag/bmpfunctions/feed" rel="self" type="application/rss+xml" />
	<link>http://hangunsworld.com/blog</link>
	<description>about ActionScript, Flash, Web and more...</description>
	<lastBuildDate>Tue, 24 Aug 2010 16:27:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Watermark effect</title>
		<link>http://hangunsworld.com/blog/211</link>
		<comments>http://hangunsworld.com/blog/211#comments</comments>
		<pubDate>Mon, 22 Oct 2007 05:35:35 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[BMPFunctions]]></category>
		<category><![CDATA[Watermark]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=211</guid>
		<description><![CDATA[I made a watermark effect. I added addWatermark() method to BMPFunctions.as file which I revealed earlier. You can download the class file from the following link.
비트맵데이터에 워터마크를 넣는 효과를 만들어 보았습니다. 전에 공개한 BMPFunctions.as 클래스 에 addWatermark() 메소드를 추가한 것으로, 아래 링크에서 BMPFunctions.as 파일을 다운로드 하세요.
BitmapDataにウオーターマークを増すエフェクトを作ってみました。以前に公開したBMPFunctions.asクラスにaddWatermark()メソッド追加したんです。下のリンクからBMPFunctions.asファイルをダウンロードします。
http://hangunsworld.com/classes/com/hangunsworld/as3/util/


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
import	com.hangunsworld.as3.util.BMPFunctions;
&#160;
var wm:BitmapData = new WatermarkSource&#40;0, 0&#41;;
&#160;
var bd:BitmapData = new BitmapData&#40;mc.width, [...]]]></description>
			<content:encoded><![CDATA[<div class="english">I made a watermark effect. I added addWatermark() method to BMPFunctions.as file which I revealed earlier. You can download the class file from the following link.</div>
<div class="korean">비트맵데이터에 워터마크를 넣는 효과를 만들어 보았습니다. 전에 공개한 BMPFunctions.as 클래스 에 addWatermark() 메소드를 추가한 것으로, 아래 링크에서 BMPFunctions.as 파일을 다운로드 하세요.</div>
<div class="japanese">BitmapDataにウオーターマークを増すエフェクトを作ってみました。以前に公開したBMPFunctions.asクラスにaddWatermark()メソッド追加したんです。下のリンクからBMPFunctions.asファイルをダウンロードします。</div>
<p><a href="http://hangunsworld.com/classes/com/hangunsworld/as3/util/">http://hangunsworld.com/classes/com/hangunsworld/as3/util/</a></p>
<p><embed src='http://hangunsworld.com/blog/wp-content/uploads/2007/10/watermark.swf' width='550' height='430' /></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span>	com.hangunsworld.as3.util.BMPFunctions;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> wm<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> WatermarkSource<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span>mc.<span style="color: #004993;">width</span>, mc.<span style="color: #004993;">height</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, <span style="color: #000000; font-weight:bold;">0</span>×00<span style="color: #000000;">&#41;</span>;
bd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>mc<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bmp<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bd<span style="color: #000000;">&#41;</span>;
bmp.<span style="color: #004993;">x</span> = mc.<span style="color: #004993;">width</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">5</span>;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bmp<span style="color: #000000;">&#41;</span>;
&nbsp;
add_btn.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, btnClick<span style="color: #000000;">&#41;</span>;
<span style="color: #339966; font-weight: bold;">function</span> btnClick<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> mar<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>margin_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> off<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>offset_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> sca<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>scale_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> rot<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>rotation_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;
	rot = rot<span style="color: #000000; font-weight: bold;">%</span>360;
	rotation_txt.<span style="color: #004993;">text</span> = rot.<span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> alp<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>alpha_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;
	alp = <span style="color: #004993;">Math</span>.<span style="color: #004993;">min</span><span style="color: #000000;">&#40;</span>alp, <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span>;
	alpha_txt.<span style="color: #004993;">text</span> = alp.<span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
	sca <span style="color: #000000; font-weight: bold;">/</span>= <span style="color: #000000; font-weight:bold;">100</span>;
	alp <span style="color: #000000; font-weight: bold;">/</span>= <span style="color: #000000; font-weight:bold;">100</span>;
&nbsp;
	bd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>mc<span style="color: #000000;">&#41;</span>;
	bd = BMPFunctions.addWatermark<span style="color: #000000;">&#40;</span>bd, wm, mar, off, sca, rot, alp<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><a href='http://hangunsworld.com/blog/wp-content/uploads/2007/10/watermark.fla' title='Download watermark.fla'>Download FLA</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/211/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flood Fill</title>
		<link>http://hangunsworld.com/blog/206</link>
		<comments>http://hangunsworld.com/blog/206#comments</comments>
		<pubDate>Mon, 08 Oct 2007 09:02:08 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[BMPFunctions]]></category>
		<category><![CDATA[Color]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=206</guid>
		<description><![CDATA[I added floodFill() to the BMPFunctions.as, released yesterday. This method is an enhanced version of BitmapData.floodFill(). It changes pixels similar to the selected pixel&#8217;s color. And you can choose the contiguous option.
You can download the BMPFunctions.as file in the following link.
어제 공개한 BMPFunctions.as 클래스에 BitmapData.floodFill() 메소드를 개선한 floodFill() 메소드를 추가했습니다. 선택한 좌표의 픽셀과 비슷한 색상의 [...]]]></description>
			<content:encoded><![CDATA[<div class="english">I added floodFill() to the BMPFunctions.as, released yesterday. This method is an enhanced version of BitmapData.floodFill(). It changes pixels similar to the selected pixel&#8217;s color. And you can choose the contiguous option.</p>
<p>You can download the BMPFunctions.as file in the following link.</p></div>
<div class="korean">어제 공개한 BMPFunctions.as 클래스에 BitmapData.floodFill() 메소드를 개선한 floodFill() 메소드를 추가했습니다. 선택한 좌표의 픽셀과 비슷한 색상의 픽셀들을 원하는 색상으로 변경할 수 있습니다. 또한 연속된 영역만 변경하도록 선택할 수 있습니다.</p>
<p>클래스 파일은 아래 페이지에서 BMPFunctions.as를 다운로드하면 됩니다.</p></div>
<div class="japanese">昨日公開したBMPFunctions.asクラスにfloodFill()メソッドを追加したんです。これはBitmapData.floodFill()メソッドを改善したので、つながっている領域だけを変更するか、イメージ全体的に変更するか選択できます。</p>
<p>下のリンクのページで BMPFunctions.asファイルをダウンロードできます。</p></div>
<p><a href="http://hangunsworld.com/classes/com/hangunsworld/util/">http://hangunsworld.com/classes/com/hangunsworld/as3/util/</a></p>
<p><embed src='http://hangunsworld.com/blog/wp-content/uploads/2007/10/floodfill.swf' width='550' height='450' /></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
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> com.hangunsworld.util.BMPFunctions;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span>mc.<span style="color: #004993;">width</span>, mc.<span style="color: #004993;">height</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, <span style="color: #000000; font-weight:bold;">0</span>×00000000<span style="color: #000000;">&#41;</span>;
bd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>mc<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bmp<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bd<span style="color: #000000;">&#41;</span>;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bmp<span style="color: #000000;">&#41;</span>;
bmp.<span style="color: #004993;">x</span> = mc.<span style="color: #004993;">width</span>;
&nbsp;
mc.<span style="color: #004993;">buttonMode</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;
mc.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, mcClicked<span style="color: #000000;">&#41;</span>;
<span style="color: #339966; font-weight: bold;">function</span> mcClicked<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
	bd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>mc<span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">c</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = bd.<span style="color: #004993;">getPixel32</span><span style="color: #000000;">&#40;</span>mc.<span style="color: #004993;">mouseX</span>, mc.<span style="color: #004993;">mouseY</span><span style="color: #000000;">&#41;</span>;
	c1_txt.<span style="color: #004993;">text</span> = <span style="color: #004993;">c</span>.<span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">16</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">toUpperCase</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> c2<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>“0x” <span style="color: #000000; font-weight: bold;">+</span> c2_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> t<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">Math</span>.<span style="color: #004993;">max</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #004993;">Math</span>.<span style="color: #004993;">min</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">255</span>, <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>t_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> cont<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> = cont_cb.selected;
&nbsp;
	bd = BMPFunctions.<span style="color: #004993;">floodFill</span><span style="color: #000000;">&#40;</span>bd, mc.<span style="color: #004993;">mouseX</span>, mc.<span style="color: #004993;">mouseY</span>, c2, t, cont<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><a href='http://hangunsworld.com/blog/wp-content/uploads/2007/10/floodfill.fla'>Download FLA</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/206/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color replacement</title>
		<link>http://hangunsworld.com/blog/202</link>
		<comments>http://hangunsworld.com/blog/202#comments</comments>
		<pubDate>Fri, 05 Oct 2007 15:48:47 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[BMPFunctions]]></category>
		<category><![CDATA[Color]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=202</guid>
		<description><![CDATA[I made an effect similar to the paint bucket feature in Photoshop. This replace colors similar to a user defined color with a specific color.
You can download the BMPFunctions.as file in the following link.
포토샵의 페인트 버켓 툴과 비슷한 효과를 만들어 보았습니다. 지정된 색과 비슷한 색상을 찾아서 원하는 색상으로 바꿔줍니다.
클래스 파일은 아래 페이지에서 BMPFunctions.as를 다운로드하면 됩니다.
PhotoshopのPaint [...]]]></description>
			<content:encoded><![CDATA[<div class="english">I made an effect similar to the paint bucket feature in Photoshop. This replace colors similar to a user defined color with a specific color.</p>
<p>You can download the BMPFunctions.as file in the following link.</p></div>
<div class="korean">포토샵의 페인트 버켓 툴과 비슷한 효과를 만들어 보았습니다. 지정된 색과 비슷한 색상을 찾아서 원하는 색상으로 바꿔줍니다.</p>
<p>클래스 파일은 아래 페이지에서 BMPFunctions.as를 다운로드하면 됩니다.</p></div>
<div class="japanese">PhotoshopのPaint Bucketのような物を作ってみました。選んだ色に似ている色をほかの色に変わります。</p>
<p>下のリンクのページで BMPFunctions.asファイルをダウンロードできます。</p></div>
<p><a href="http://hangunsworld.com/classes/com/hangunsworld/as3/util/">http://hangunsworld.com/classes/com/hangunsworld/as3/util/</a></p>
<p><embed src='http://hangunsworld.com/blog/wp-content/uploads/2007/10/replacecolor.swf' width='550' height='450' /></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> com.hangunsworld.as3.util.BMPFunctions;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span>mc.<span style="color: #004993;">width</span>, mc.<span style="color: #004993;">height</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, <span style="color: #000000; font-weight:bold;">0</span>×00000000<span style="color: #000000;">&#41;</span>;
bd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>mc<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bmp<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bd<span style="color: #000000;">&#41;</span>;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bmp<span style="color: #000000;">&#41;</span>;
bmp.<span style="color: #004993;">x</span> = mc.<span style="color: #004993;">width</span>;
&nbsp;
<span style="color: #009900;">// Replace Color button event listener</span>
replace_btn.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, doReplace<span style="color: #000000;">&#41;</span>;
<span style="color: #339966; font-weight: bold;">function</span> doReplace<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> c1<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>“0x” <span style="color: #000000; font-weight: bold;">+</span> c1_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> c2<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>“0x” <span style="color: #000000; font-weight: bold;">+</span> c2_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> t<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #004993;">Math</span>.<span style="color: #004993;">max</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #004993;">Math</span>.<span style="color: #004993;">min</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">255</span>, <span style="color: #004993;">uint</span><span style="color: #000000;">&#40;</span>t_txt.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
	t_txt.<span style="color: #004993;">text</span> = t.<span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
	<span style="color: #009900;">// draws original image</span>
	bd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>mc<span style="color: #000000;">&#41;</span>;
	<span style="color: #009900;">// replaces colors</span>
	bd = BMPFunctions.replaceColor<span style="color: #000000;">&#40;</span>bd, c1, c2, t<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><a href='http://hangunsworld.com/blog/wp-content/uploads/2007/10/replacecolor.fla' title=''>Download FLA</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/202/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
