<?xml version="1.0" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Forum | FlashMyMind - Flash and ActionScript 3 Tutorials</title>
	<link>http://tutorials.flashmymind.com/forum/actionscript-30/menu-with-xml-actionscipt-linking-help</link>
	<description><![CDATA[]]></description>
	<generator>Simple:Press Forum Version 4.0.2</generator>
	<atom:link href="http://tutorials.flashmymind.com/forum?actionscript-30&#038;menu-with-xml-actionscipt-linking-help&#038;xfeed=topic" rel="self" type="application/rss+xml" />
<item>
	<title>Inter-Reality on Menu with XML &#38; Actionscipt - Linking help</title>
	<link>http://tutorials.flashmymind.com/forum/actionscript-30/menu-with-xml-actionscipt-linking-help/#p153</link>
	<category>Actionscript 3.0</category>
	<guid isPermaLink="true">http://tutorials.flashmymind.com/forum/actionscript-30/menu-with-xml-actionscipt-linking-help/#p153</guid>
	<description><![CDATA[<p>hi Kristov,</p>
<p>function itemClicked(e:Event):void {<br /> <br /> //Get the item that dispatched the event<br /> var item:MenuItem = e.target as MenuItem;<br /> <br /> //Navigate to the URL that&#39;s assigned to the menu item<br /> var urlRequest:URLRequest = new URLRequest(item.linkTo);<br /> navigateToURL(urlRequest);<br />}</p>
<p>the damage is done by the navigateToURL. the solution is to add a comma and the html call.<br />in your case that could be: navigateToURL(request, &#8220;_self&#8221;);</p>
<p>your itemClicked function would look like so:</p>
<p>function itemClicked(e:Event):void {<br /> <br /> //Get the item that dispatched the event<br /> var item:MenuItem = e.target as MenuItem;<br /> <br /> //Navigate to the URL that&#39;s assigned to the menu item<br /> var urlRequest:URLRequest = new URLRequest(item.linkTo);<br /> navigateToURL(urlRequest, &#8220;_self&#8221;);<br /> //_parent &#38; _blank are known html instructions.</p>
<p>//See more about this on <a rel="nofollow" href="http://www.w3schools.com/HTML/....._links.asp" target="_blank">http://www.w3schools.com/HTML/....._links.asp</a></p>
<p>}</p>
<p>Happy coding!<br /><span style="color: #888888;">Cool</span></p>
<br />
<p>Adjustment</p>
<table border="1" cellspacing="0" cellpadding="3">
<tbody>
<tr bgcolor="#ffffcc">
<td><strong>Target</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td><code><span style="color: #0000cc;">_blank</span></code></td>
<td>Loads the linked document into a new blank window. This window is not named.</td>
</tr>
<tr>
<td><code><span style="color: #0000cc;">_parent</span></code></td>
<td>Loads the linked document into the immediate parent of the document the link is in.</td>
</tr>
<tr>
<td><code><span style="color: #0000cc;">_search</span></code></td>
<td>Loads the linked document into the browser&#39;s search pane. Available in Internet Explorer 5 or later.</td>
</tr>
<tr>
<td><code><span style="color: #0000cc;">_self</span></code></td>
<td>Loads the linked document into the same window the link was clicked in (the active window).</td>
</tr>
<tr>
<td><code><span style="color: #0000cc;">_top</span></code></td>
<td>Loads the linked document into the topmost window.</td>
</tr>
</tbody>
</table>
]]></description>
	<pubDate>Tue, 02 Feb 2010 16:29:07 +0000</pubDate>
</item>
<item>
	<title>kristov on Menu with XML &#38; Actionscipt - Linking help</title>
	<link>http://tutorials.flashmymind.com/forum/actionscript-30/menu-with-xml-actionscipt-linking-help/#p140</link>
	<category>Actionscript 3.0</category>
	<guid isPermaLink="true">http://tutorials.flashmymind.com/forum/actionscript-30/menu-with-xml-actionscipt-linking-help/#p140</guid>
	<description><![CDATA[<p>I&#39;ve followed the handy tutorial Colorful Menu with XML and Actionscript 3 - <a href="http://tutorials.flashmymind.com/2009/04/colorful-menu-with-xml-and-actionscript-3/" rel="nofollow" target="_blank">http://tutorials.flashmymind.c.....nscript-3/</a></p>
<br />
<p>What I want to work out is, I&#39;m having the menu system on every page of my website, and I want to know how to change the &#60;linkTo&#62; function to open the links in the same window instead of opening a new tab/window everytime a link is clicked.</p>
]]></description>
	<pubDate>Wed, 13 Jan 2010 04:14:40 +0000</pubDate>
</item>
</channel>
</rss>