{"id":1851,"date":"2010-11-15T10:24:59","date_gmt":"2010-11-15T10:24:59","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/after_sale_support\/Working_with_Flash\/Basic\/article23.html"},"modified":"2020-02-03T03:57:47","modified_gmt":"2020-02-03T08:57:47","slug":"assigning-links-flash","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/assigning-links-flash.html","title":{"rendered":"Assigning links in Flash"},"content":{"rendered":"To add some interactivity to the flash animated part of your web design template you should add some links to the flash objects. For example you&#8217;ll need to link flash buttons with pages of your website or redirect your flash intro to homepage after it finished.\r\n\r\nThere are some kinds of links in Macromedia Flash: button symbol links, frame links and text links.\r\n\r\nFirst of all you should open source <span style=\"font-weight: bold;\">&#8220;FLA&#8221;<\/span> file in Macromedia Flash editor. To add links to the button symbols in your flash movie do the following. First of all you should locate button symbol you want links be assigned to. There are two ways of how to do that.\r\n\r\nThe first way is to access it from the timeline. After you&#8217;ve opened FLA file in Macromedia Flash, move red timeline slider and watch the animation process. When you&#8217;ll see button symbol that needs to be linked, stop the timeline slider.\r\n\r\nSelect it by single clicking it with <strong>Selection Tool<\/strong>. You can choose Selection Tool from tools panel or call this tool by pressing <span style=\"font-weight: bold;\">&#8220;V&#8221;<\/span> hotkey. Go to the Properties Panel to check this symbols behavior. If you can&#8217;t see this panel for any reason you can open it by pressing <span style=\"font-weight: bold;\">&#8220;CTRL + F3&#8221;<\/span> hotkey. At the top left corner of this panel symbols behavior drop down is located. It must be a <span style=\"font-weight: bold;\">&#8220;Button&#8221;<\/span>. If it is <span style=\"font-weight: bold;\">&#8220;Movie Clip&#8221;<\/span>, <span style=\"font-weight: bold;\">&#8220;Graphics&#8221;<\/span> or some other that differs from <span style=\"font-weight: bold;\">&#8220;Button&#8221;<\/span> you can&#8217;t assign links to it in the right way. Don&#8217;t change it to the <span style=\"font-weight: bold;\">&#8220;Button&#8221;<\/span> because it will damage original rollover structure. Double click this symbol to get inside of it, select its content and check symbols behavior again.\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_1-300x64.jpg\" alt=\"\" title=\"assign_links_flash_1\" width=\"300\" height=\"64\" class=\"alignnone size-medium wp-image-18283\" \/><\/a><\/p>\r\n<p style=\"text-align: center; font-weight: bold;\">Symbol Behavior<\/p>\r\nIf you are still unable to locate appropriate symbol, maybe some symbols are hidden or locked. To unhide\/unlock symbols do the following. Go to the timeline panel, there is a layers list on the left of it. There are three icons on the top of this list: eye, lock and rectangle. Click eye and lock icons twice to unhide and unlock all layers in current symbol.\r\n\r\nSome of flash headers have complicated structure to create powerful animation effects. So, it will be hard to access button symbols from the timeline. The easiest and most reliable way to locate elements in flash is to use symbols library. To open symbols library you can use <span style=\"font-weight: bold;\">&#8220;CTRL + L&#8221;<\/span> hotkey or choose <span style=\"font-weight: bold;\">&#8220;Window\/Library&#8230;&#8221;<\/span> from the top menu.\r\n\r\nBrowse the symbols library to find button symbol you want links be assigned to. You can see symbols preview in the preview window at the top of symbols library panel. Actually all button symbols have appropriate names such as <span style=\"font-weight: bold;\">&#8220;About Us button&#8221;<\/span> or <span style=\"font-weight: bold;\">&#8220;Search button&#8221;<\/span>. Double click symbols icon to edit it in the main workspace window. Then do operations described above to locate symbol with &#8220;Button&#8221; behavior.\r\n\r\nAfter you&#8217;ve selected button symbol press <span style=\"font-weight: bold;\">&#8220;F9&#8221;<\/span> to open Actions panel. If this button has rollover effect, you will see following script code there:\r\n<div class=\"example_code\">\r\n\r\non (rollOver) {\r\n\r\ngotoAndPlay(2);\r\n\r\n}\r\n\r\non (rollOut) {\r\n\r\ngotoAndPlay(10);\r\n\r\n}\r\n\r\n<\/div>\r\nAdd there following getURL action script code:\r\n<div class=\"example_code\">\r\n\r\non (release) {\r\n\r\ngetURL(&#8220;your_url_here&#8221;);\r\n\r\n}\r\n\r\n<\/div>\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_2-300x237.jpg\" alt=\"\" title=\"assign_links_flash_2\" width=\"300\" height=\"237\" class=\"alignnone size-medium wp-image-18284\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_2-300x237.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_2.jpg 357w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p style=\"text-align: center; font-weight: bold;\">getURL Action Script<\/p>\r\n\r\n\r\nYou should type URL button will be linked to as get URL function argument. For example, if you want to link button to your contacts page type the following:\r\n<div class=\"example_code\">\r\n\r\non (release) {\r\n\r\ngetURL(&#8220;http:\/\/mywebsite.com\/contacts.html&#8221;);\r\n\r\n}\r\n\r\n<\/div>\r\nActually, get URL function accepts three arguments: URL, window type and variables send method. Window type argument specifies where new URL will be opened. If this argument is blank the link will be open in the same window. If you want to open it in a new window, use the <span style=\"font-weight: bold;\">&#8220;_blank&#8221;<\/span> argument. Variables send method should be used if you are parsing some variables through the URL string. The available options are <span style=\"font-weight: bold;\">&#8220;GET&#8221;<\/span> and <span style=\"font-weight: bold;\">&#8220;POST&#8221;<\/span>. Next action script example calls products page with &#8220;item&#8221; variable with &#8220;9&#8221; value in the same window using a GET method.\r\n<div class=\"example_code\">\r\n\r\non (release) {\r\n\r\ngetURL(&#8220;http:\/\/mywebsite.com\/products.php?item=9&#8221;, &#8220;_self&#8221;, &#8220;GET&#8221;);\r\n\r\n}\r\n\r\n<\/div>\r\nIf you are using flash intro template, you will need to redirect visitor to your website after intro finished playing. To do these follow next instructions.\r\n\r\nMove red timeline slider to the end of flash intro movie. Select the last frame by single clicking it with mouse. Press &#8220;F6&#8221; to create key frame in this frame. Press &#8220;F9&#8221; to open Actions panel. Type the following code there.\r\n<div class=\"example_code\">getURL(&#8220;your_url_here&#8221;);\r\n\r\n<\/div>\r\nReplace <span style=\"font-weight: bold;\">&#8220;your_url_here&#8221;<\/span> text with appropriate URL of your website.\r\n\r\nIf you want some portion of text to be linked to some location on the web please, do the following. Locate the symbol containing text. Select the text you want to link with URL by using a Text Tool. Go to Properties Panel, press <span style=\"font-weight: bold;\">&#8220;CTRL+F3&#8221;<\/span> if you can&#8217;t see it for some reasons. At the very bottom of that panel you&#8217;ll see the URL input box. It has the chain icon on the left of it. Just fill that empty input box with the appropriate URL.\r\n<p style=\"text-align: center;\"><a href=\"\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_3-300x42.jpg\" alt=\"\" title=\"assign_links_flash_3\" width=\"300\" height=\"42\" class=\"alignnone size-medium wp-image-18285\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_3-300x42.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2010\/11\/assign_links_flash_3.jpg 495w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p style=\"text-align: center; font-weight: bold;\">URL Input Box<\/p>\r\n\r\n\r\nNow it&#8217;s time to publish your flash movie. Read <a class=\"link3\" href=\"\/help\/publishing-your-flash-movie.html\">Publishing your Flash movie<\/a> section for the detailed instructions.","protected":false},"excerpt":{"rendered":"<p>To add some interactivity to the flash animated part of your web design template you should add some links to the flash objects. For example you&#8217;ll need to link flash buttons with pages of your website or redirect your flash intro to homepage after it finished. There are some kinds of links in Macromedia Flash: [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[735,745,431,743,742,741,432,279],"tags":[486,511],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1851"}],"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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1851"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1851\/revisions"}],"predecessor-version":[{"id":86238,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1851\/revisions\/86238"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}