{"id":1619,"date":"2012-04-05T10:24:57","date_gmt":"2012-04-05T14:24:57","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/eoc\/flash\/article6.html"},"modified":"2012-04-16T08:03:48","modified_gmt":"2012-04-16T12:03:48","slug":"how-assign-external-link-menu-button","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-assign-external-link-menu-button.html","title":{"rendered":"Flash. How to assign an external link to a menu button"},"content":{"rendered":"<p>In this tutorial you will learn the way to link main menu to external URL<\/p>\r\n<p>1) First of all you should locate menu item you need to update link. You can do it both by browsing Flash library and cheching symbols on the main stage.<\/p>\r\n<p>2) As soon as you locate menu item you should open action panel (F9) for action symbol to see menu scripting <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2010\/11\/img17.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2010\/11\/img17-300x276.jpg\" alt=\"\" title=\"img1\" width=\"300\" height=\"276\" class=\"aligncenter size-medium wp-image-16198\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2010\/11\/img17-300x276.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2010\/11\/img17.jpg 580w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>3) You need to locate action for &quot;on (release)&quot; action, it should look same way:<\/p>\r\n<pre class=\"brush:as3\">\r\non (release) {\r\n  if (_root.link != _parent.num &amp;&amp; _root.anime == 0)\r\n  {\r\n  _parent._parent[&quot;butt&quot; + _root.link].gotoAndPlay(&quot;s4&quot;);\r\n  _root.prev = _root.link;\r\n  _root.link = _parent.num;\r\n  _parent.gotoAndPlay(&quot;s3&quot;);\r\n  _root.anime = 1;\r\n  _root.cont.play();\r\n  }\r\n  \/\/ end if \r\n  }<\/pre>\r\n  \r\n<p>4) Remove everything inside<\/p>\r\n<pre class=\"brush:as3\">on (release) {\r\n  \r\n  }<\/pre>\r\n<p>5) Add the script to open external URL:<\/p>\r\n\r\n<pre class=\"brush:as3\">on (release) {\r\n  getURL(&quot;http:\/\/www.google.com&quot;)\r\n  }<\/pre>\r\n  \r\n<p>6) When setting external link always use &quot;http:\/\/www&quot; before the actual link.<\/p>\r\n\r\n<p>&nbsp;<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"\/help\/files\/Flash\/how-assign-external-link-menu-button.htm\" target=\"blank\">how-assign-external-link-menu-button<\/a>","protected":false},"excerpt":{"rendered":"<p>In this tutorial you will learn the way to link main menu to external URL.<\/p>\n","protected":false},"author":12,"featured_media":16870,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[279,287],"tags":[536,486,511],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1619"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1619"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1619\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/16870"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}