{"id":377,"date":"2010-06-19T12:24:44","date_gmt":"2010-06-19T10:24:44","guid":{"rendered":"http:\/\/kavdesign.net\/blog\/?p=377"},"modified":"2010-06-19T12:25:20","modified_gmt":"2010-06-19T10:25:20","slug":"how-to-add-a-link-to-open-a-site-in-the-browser-on-a-flash-movie","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-add-a-link-to-open-a-site-in-the-browser-on-a-flash-movie\/","title":{"rendered":"How to add a link to open a site in the browser on a flash movie?"},"content":{"rendered":"<p>Create a button on the movie.<br \/>\nGive a name to the instance of the button with the name button.<br \/>\nPut this code on the first frame of your flash movie.<br \/>\n<code><br \/>\nbutton.addEventListener(MouseEvent.CLICK, btn_function);<br \/>\nvar button_request:URLRequest = new URLRequest(\"http:\/\/mysite.com\");<br \/>\nfunction btn_function(event: MouseEvent)<br \/>\n{<br \/>\nnavigateToURL(button_request, \"_blank\");<br \/>\n}<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a button on the movie. Give a name to the instance of the button with the name button. Put this code on the first&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-add-a-link-to-open-a-site-in-the-browser-on-a-flash-movie\/\">Continue reading<span class=\"screen-reader-text\">How to add a link to open a site in the browser on a flash movie?<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9],"tags":[71],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-coding","tag-flash","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":3,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":380,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/377\/revisions\/380"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}