<?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; net</title>
	<atom:link href="http://hangunsworld.com/blog/tag/net/feed" rel="self" type="application/rss+xml" />
	<link>http://hangunsworld.com/blog</link>
	<description>about ActionScript, Flash, Web and more...</description>
	<lastBuildDate>Sun, 29 Apr 2012 14:41:21 +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>URLNavigator has been modified.</title>
		<link>http://hangunsworld.com/blog/320</link>
		<comments>http://hangunsworld.com/blog/320#comments</comments>
		<pubDate>Tue, 17 Jun 2008 00:16:46 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[URLNavigator]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=320</guid>
		<description><![CDATA[URLNavigator 클래스를 수정하여 링크 이동 뿐 아니라, 자바스크립트도 실행이 가능하도록 수정하였습니다. 아래 코드와 같이 URLNavigator.callJS() 메소드를 통해서 자바스크립트 함수를 호출 할 수 있습니다. I modified the URLNavigator class to add calling JavaScript function feature. You can use URLNavigator.callJS() method to call a JavaScript function like this. URLNavigatorクラスを改めてJavaScript函数を呼び出すことが出来るようにしました。下のコードのように、URLNavigator.callJS()メソッドを通じてJavaScript函数を実行出来ます。 1 2 3 4 import com.hangunsworld.net.URLNavigator; var un:URLNavigator <a href='http://hangunsworld.com/blog/320'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="korean"><a href="http://hangunsworld.com/classes/com/hangunsworld/net/URLNavigator/">URLNavigator</a> 클래스를 수정하여 링크 이동 뿐 아니라, 자바스크립트도 실행이 가능하도록 수정하였습니다.<br />
아래 코드와 같이 URLNavigator.callJS() 메소드를 통해서 자바스크립트 함수를 호출 할 수 있습니다.</div>
<div class="english">I modified the <a href="http://hangunsworld.com/classes/com/hangunsworld/net/URLNavigator/">URLNavigator</a> class to add calling JavaScript function feature. You can use URLNavigator.callJS() method to call a JavaScript function like this.</div>
<div class="japanese"><a href="http://hangunsworld.com/classes/com/hangunsworld/net/URLNavigator/">URLNavigator</a>クラスを改めてJavaScript函数を呼び出すことが出来るようにしました。下のコードのように、URLNavigator.callJS()メソッドを通じてJavaScript函数を実行出来ます。</div>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> com<span style="color: #000066; font-weight: bold;">.</span>hangunsworld<span style="color: #000066; font-weight: bold;">.</span>net<span style="color: #000066; font-weight: bold;">.</span>URLNavigator<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> un<span style="color: #000066; font-weight: bold;">:</span>URLNavigator = <span style="color: #0033ff; font-weight: bold;">new</span> URLNavigator<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
un<span style="color: #000066; font-weight: bold;">.</span>callJS<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;functionName&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
un<span style="color: #000066; font-weight: bold;">.</span>callJS<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;functionName&quot;</span><span style="color: #000066; font-weight: bold;">,</span> param1<span style="color: #000066; font-weight: bold;">,</span> param2<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">...,</span> paramN<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<div class="korean">또는 다음과 같이 링크와 자바스크립트가 혼재되어 있는 경우, URLNavigator.analyze() 메소드를 사용할 수 있습니다. 이 경우 타겟이 &#8220;javascript&#8221;로 설정된 경우 자바스크립트 함수를 실행하고, 이 외의 경우에는 지정된 링크로 이동합니다.</div>
<div class="english">If JavaScript calls are mixed with normal links, use URLNavigator.analyze() method. It calls callJS() method, when the target property is set to &#8220;javascript&#8221;, otherwise, it goes to the sepcified link.</div>
<div class="japanese">JavaScriptコルと一般リンクが混じっている場合、URLNavigator.analyze()メソッドを使えます。Targetプロパーティが &#8220;javascript&#8221;に設定されると、JavaScrpt函数を実行します。その他の場合、リンクに移動します。</div>

<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>	com<span style="color: #000066; font-weight: bold;">.</span>hangunsworld<span style="color: #000066; font-weight: bold;">.</span>net<span style="color: #000066; font-weight: bold;">.</span>URLNavigator<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> un<span style="color: #000066; font-weight: bold;">:</span>URLNavigator = <span style="color: #0033ff; font-weight: bold;">new</span> URLNavigator<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
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> listener<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
btn1<span style="color: #000066; font-weight: bold;">.</span>num = <span style="color: #000000; font-weight:bold;">0</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> listener<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
btn2<span style="color: #000066; font-weight: bold;">.</span>num = <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span>
btn3<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> listener<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
btn3<span style="color: #000066; font-weight: bold;">.</span>num = <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<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: #000066; font-weight: bold;">&lt;</span>sample<span style="color: #000066; font-weight: bold;">&gt;</span>
             <span style="color: #000066; font-weight: bold;">&lt;</span>link<span style="color: #000066; font-weight: bold;">&gt;</span>
                           <span style="color: #000066; font-weight: bold;">&lt;</span>link_url<span style="color: #000066; font-weight: bold;">&gt;&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>http<span style="color: #000066; font-weight: bold;">:</span><span style="color: #009900; font-style: italic;">//hangunsworld.com]]&gt;&lt;/link_url&gt;</span>
                           <span style="color: #000066; font-weight: bold;">&lt;</span>link_target<span style="color: #000066; font-weight: bold;">&gt;&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>_self<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">&gt;&lt;/</span>link_target<span style="color: #000066; font-weight: bold;">&gt;</span>
             <span style="color: #000066; font-weight: bold;">&lt;/</span>link<span style="color: #000066; font-weight: bold;">&gt;</span>
             <span style="color: #000066; font-weight: bold;">&lt;</span>link<span style="color: #000066; font-weight: bold;">&gt;</span>
                           <span style="color: #000066; font-weight: bold;">&lt;</span>link_url<span style="color: #000066; font-weight: bold;">&gt;&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>test2<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">&gt;&lt;/</span>link_url<span style="color: #000066; font-weight: bold;">&gt;</span>
                           <span style="color: #000066; font-weight: bold;">&lt;</span>link_target<span style="color: #000066; font-weight: bold;">&gt;&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>javascript<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">&gt;&lt;/</span>link_target<span style="color: #000066; font-weight: bold;">&gt;</span>
             <span style="color: #000066; font-weight: bold;">&lt;/</span>link<span style="color: #000066; font-weight: bold;">&gt;</span>
             <span style="color: #000066; font-weight: bold;">&lt;</span>link<span style="color: #000066; font-weight: bold;">&gt;</span>
                           <span style="color: #000066; font-weight: bold;">&lt;</span>link_url<span style="color: #000066; font-weight: bold;">&gt;&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span><span style="color: #004993;">test</span><span style="color: #000066; font-weight: bold;">^</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">^</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">^</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">&gt;&lt;/</span>link_url<span style="color: #000066; font-weight: bold;">&gt;</span>
                           <span style="color: #000066; font-weight: bold;">&lt;</span>link_target<span style="color: #000066; font-weight: bold;">&gt;&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>javascript<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">&gt;&lt;/</span>link_target<span style="color: #000066; font-weight: bold;">&gt;</span>
             <span style="color: #000066; font-weight: bold;">&lt;/</span>link<span style="color: #000066; font-weight: bold;">&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;/</span>sample<span style="color: #000066; font-weight: bold;">&gt;;</span>
&nbsp;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> listener<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>
	<span style="color: #6699cc; font-weight: bold;">var</span> mc<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> num<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = mc<span style="color: #000066; font-weight: bold;">.</span>num<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">link</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = xml<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">link</span><span style="color: #000000;">&#91;</span>num<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>link_url<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toString</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> targ<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = xml<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">link</span><span style="color: #000000;">&#91;</span>num<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>link_target<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	un<span style="color: #000066; font-weight: bold;">.</span>analyze<span style="color: #000000;">&#40;</span><span style="color: #004993;">link</span><span style="color: #000066; font-weight: bold;">,</span> targ<span style="color: #000066; font-weight: bold;">,</span> e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ctrlKey</span><span style="color: #000066; font-weight: bold;">,</span> e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">altKey</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;^&quot;</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/320/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URLNavigator class.</title>
		<link>http://hangunsworld.com/blog/263</link>
		<comments>http://hangunsworld.com/blog/263#comments</comments>
		<pubDate>Fri, 04 Apr 2008 07:31:52 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[navigateToURL]]></category>
		<category><![CDATA[net]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=263</guid>
		<description><![CDATA[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 43 44 45 46 47 48 49 50 51 52 53 54 55 <a href='http://hangunsworld.com/blog/263'>[...]</a>]]></description>
			<content:encoded><![CDATA[
<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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #3f5fbf;">/**
 * URLNavigator
 *
 * The URLNavigator class extends the Flash built-in method, navigateToURL.
 * This class copies the Firefox browser's link-click action.
 * If you click on a link with the &quot;Ctrl&quot; key held down, the link will be opened in a new window or a new tab, depend on the browser's settings.
 * Or Flash Player tries to download the url, if the &quot;Alt&quot; key is held down.
 *
 * @author: Han Sanghun (http://hangunsworld.com, hanguns@gmail.com)
 * @created: 2008 04 04
 * @last modified: 2008 04 04
 *
 * Modify Histories
*/</span>
&nbsp;
&nbsp;
<span style="color: #9900cc; font-weight: bold;">package</span> com<span style="color: #000066; font-weight: bold;">.</span>hangunsworld<span style="color: #000066; font-weight: bold;">.</span>net<span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span>	<span style="color: #004993;">flash.net</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">navigateToURL</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span>	<span style="color: #004993;">flash.net</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">URLRequest</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span>	com<span style="color: #000066; font-weight: bold;">.</span>hangunsworld<span style="color: #000066; font-weight: bold;">.</span>net<span style="color: #000066; font-weight: bold;">.</span>Downloader<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> URLNavigator<span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">// Downloader object.</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> dloader<span style="color: #000066; font-weight: bold;">:</span>Downloader<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #3f5fbf;">/**
		 * Constructor function.
		 */</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> URLNavigator<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
			dloader = <span style="color: #0033ff; font-weight: bold;">new</span> Downloader<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: #009900; font-style: italic;">// end constructor</span>
&nbsp;
		<span style="color: #3f5fbf;">/**
		 * Handles the URL depending on the properties provided.
		 *
		 * @param ur An URLRequest object.
		 * @param target A String value specifies the target window. [OPTIONAL]
		 * @param ctrlkey A Boolean value indicates whether the &quot;Ctrl&quot; key is held down. [OPTIONAL]
		 * @param altkey A Boolean value indicates where the &quot;Alt&quot; key is held down. [OPTIONAL]
		 */</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">navigateToURL</span><span style="color: #000000;">&#40;</span>ur<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">URLRequest</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span>=<span style="color: #990000;">&quot;_self&quot;</span><span style="color: #000066; font-weight: bold;">,</span> ctrlkey<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span>=<span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> altkey<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span>=<span style="color: #0033ff; font-weight: bold;">false</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>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>ctrlkey<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">// If &quot;Ctrl&quot; key is held down,</span>
				<span style="color: #009900; font-style: italic;">// opens the URL in a new window or a new tab, depend on the browser's settings.</span>
				<span style="color: #004993;">flash.net</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">navigateToURL</span><span style="color: #000000;">&#40;</span>ur<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;_blank&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #000000;">&#125;</span><span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>altkey<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">// If &quot;Alt&quot; key is held down,</span>
				<span style="color: #009900; font-style: italic;">// downlaods the URL via a Downloader object.</span>
				dloader<span style="color: #000066; font-weight: bold;">.</span>downloadURL<span style="color: #000000;">&#40;</span>ur<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #000000;">&#125;</span><span style="color: #0033ff; font-weight: bold;">else</span><span style="color: #000000;">&#123;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">// Otherwise, opens the URL in the window specified by the &quot;target&quot; parameter.</span>
				<span style="color: #004993;">flash.net</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">navigateToURL</span><span style="color: #000000;">&#40;</span>ur<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">target</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">// end navigateToURL</span>
&nbsp;
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">// end class</span>
&nbsp;
<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">// end package</span></pre></td></tr></table></div>

<p>Usage sample 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
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span>	com<span style="color: #000066; font-weight: bold;">.</span>hangunsworld<span style="color: #000066; font-weight: bold;">.</span>net<span style="color: #000066; font-weight: bold;">.</span>URLNavigator<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #004993;">stage</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;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> clickListener<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> un<span style="color: #000066; font-weight: bold;">:</span>URLNavigator = <span style="color: #0033ff; font-weight: bold;">new</span> URLNavigator<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> clickListener<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>
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;http://hangunsworld.com/blog&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> ur<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">URLRequest</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">url</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	un<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">navigateToURL</span><span style="color: #000000;">&#40;</span>ur<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;_self&quot;</span><span style="color: #000066; font-weight: bold;">,</span> e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ctrlKey</span><span style="color: #000066; font-weight: bold;">,</span> e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">altKey</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>You can download the class file <a href="/classes/com/hangunsworld/net/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/263/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Downloader class was modified.</title>
		<link>http://hangunsworld.com/blog/262</link>
		<comments>http://hangunsworld.com/blog/262#comments</comments>
		<pubDate>Fri, 04 Apr 2008 07:19:04 +0000</pubDate>
		<dc:creator>Hangun's World</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Downloader]]></category>
		<category><![CDATA[net]]></category>

		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=262</guid>
		<description><![CDATA[Downloader 클래스의 패키지를 com.hangunsworld.util 에서 com.hangunsworld.net 으로 변경하였습니다. 아무래도 util 보다는 net 패키지에 있는 것이 더 적당한 것 같아서요. 그리고 addEventListener, removeEventListener 메소드를 추가하여, 다운로드 프로그래스, 완료, 취소 등 이벤트들을 사용할 수 있습니다. Downloader class has been moved from com.hangunsworld.util to com.hangunsworld.net. I think the net is the appropriate package rather than the util. And <a href='http://hangunsworld.com/blog/262'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="korean">Downloader 클래스의 패키지를 <a href="http://hangunsworld.com/classes/com/hangunsworld/util/">com.hangunsworld.util</a> 에서 <a href="http://hangunsworld.com/classes/com/hangunsworld/net/">com.hangunsworld.net</a> 으로 변경하였습니다. 아무래도 util 보다는 net 패키지에 있는 것이 더 적당한 것 같아서요.</p>
<p>그리고 addEventListener, removeEventListener 메소드를 추가하여, 다운로드 프로그래스, 완료, 취소 등 이벤트들을 사용할 수 있습니다.</p></div>
<div class="english">Downloader class has been moved from <a href="http://hangunsworld.com/classes/com/hangunsworld/util/">com.hangunsworld.util</a> to <a href="http://hangunsworld.com/classes/com/hangunsworld/net/">com.hangunsworld.net</a>. I think the net is the appropriate package rather than the util.</p>
<p>And I added addEventListener and removeEventListener methods. Now you can monitor the download progress or get comepete event, and so on.</p></div>
<div class="japanese">Downloadクラスを <a href="http://hangunsworld.com/classes/com/hangunsworld/util/">com.hangunsworld.util</a> から <a href="http://hangunsworld.com/classes/com/hangunsworld/net/">com.hangunsworld.net</a> に移動しました。なぜならuitlよりnetクラスの方が相応しそう。</p>
<p>また、addEventListenerとremoveEventListenerメソッドを追加しました。ダウンロードプログレス、完了、キャンセルイベントを含め、色んなイベントを使えます。</p></div>
]]></content:encoded>
			<wfw:commentRss>http://hangunsworld.com/blog/262/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

