<?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>Alex Brooke &#187; external link</title>
	<atom:link href="http://alexbrooke.com/alex%20brooke/external-link/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexbrooke.com</link>
	<description>Music and tech in Tokyo</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:38:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flash Actionscript 3 URL link button</title>
		<link>http://alexbrooke.com/flash-actionscript-3-url-link-button/</link>
		<comments>http://alexbrooke.com/flash-actionscript-3-url-link-button/#comments</comments>
		<pubDate>Sun, 22 May 2011 15:00:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Learn Flash]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[external link]]></category>
		<category><![CDATA[flash tutorial]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[link]]></category>

		<guid isPermaLink="false">http://alexbrooke.com/?p=592</guid>
		<description><![CDATA[What: To make a button with a link to an external webpage using Actionscript 3 Example: Click on the &#8220;alexbrooke.com&#8221; button in the top left corner to navigate away from this page To find out how to do this go to the next page: How: 1) Draw your button 2) Select your button and click [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><strong>What:</strong></p>
<p>To make a button with a link to an external webpage using Actionscript 3</p>
<h2 class="style2">Example:</h2>
<p>Click on the &#8220;alexbrooke.com&#8221; button in the top left corner to navigate away from this page</p>
<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://media.libsyn.com/media/japanese/videoplayer.swf" /><embed type="application/x-shockwave-flash" width="500" height="400" src="http://media.libsyn.com/media/japanese/videoplayer.swf"></embed></object></div>
<p><span style="font-weight: normal;">To find out how to do this go to the next page:</span></p>
<h2 class="style2">How:</h2>
<p>1) Draw your button</p>
<p>2) Select your button and click on MODIFY then Convert to Symbol</p>
<p>3) Choose button from the menu and click OK</p>
<p>4) Select the button if it isn&#8217;t selected. Now give it an instance name of &#8220;urlButton&#8221; in the small dialog box in the bottom left hand corner</p>
<p>5) Create a new layer and insert the following actionscript into it:</p>
<p><strong>function gotoHomePage(event:MouseEvent):void<br />
{<br />
var targetURL:URLRequest = new URLRequest(&#8220;<span class="style1">http://yourhomepage.com/</span>&#8220;);<br />
navigateToURL(targetURL);<br />
}<br />
urlButton.addEventListener(MouseEvent.CLICK, gotoHomePage);</strong></p>
<p>6) Change the red url to whatever website you want to navigate to.</p>
<p>7) Publish the movie and see if it works</p>
<h2 class="style2">Extra stuff</h2>
<p>The video player I used for this example was made by <a href="http://www.thetechlabs.com/author/rnuenlist/">Rafael Nuenlist</a>. You can view the <a href="http://www.thetechlabs.com/tutorials/audionvideo/how-to-build-a-as3-videoplayer/">tutorial here</a>.</p>
<p>Please leave your comments, ideas and questions here.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/share?url=http://alexbrooke.com/flash-actionscript-3-url-link-button/&text=Flash+Actionscript+3+URL+link+button&via=tweetthisplugin&related=richardxthripp%2Ctweetthisplugin" title="Post to Twitter"><img class="nothumb" src="http://alexbrooke.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://alexbrooke.com/flash-actionscript-3-url-link-button/&amp;t=Flash+Actionscript+3+URL+link+button" title="Post to Facebook"><img class="nothumb" src="http://alexbrooke.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://alexbrooke.com/flash-actionscript-3-url-link-button/&amp;title=Flash+Actionscript+3+URL+link+button" title="Post to StumbleUpon"><img class="nothumb" src="http://alexbrooke.com/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://alexbrooke.com/flash-actionscript-3-url-link-button/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
	</channel>
</rss>

