{"id":8260,"date":"2011-05-23T04:34:32","date_gmt":"2011-05-23T08:34:32","guid":{"rendered":"http:\/\/info.template-help.com\/?p=8260"},"modified":"2011-12-12T03:24:20","modified_gmt":"2011-12-12T08:24:20","slug":"how-to-assign-link-to-image","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-assign-link-to-image.html","title":{"rendered":"How to assign link to image"},"content":{"rendered":"<p>First of all you should open source <strong>&ldquo;FLA&rdquo;<\/strong> file in Adobe 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. Open the library (CTRL+L) and locate pages movie clip.  Usually called &ldquo;pages_all&rdquo;, &ldquo;pages&rdquo;, &ldquo;pages2&rdquo;, &ldquo;content&rdquo; or &ldquo;all_content&rdquo;. <\/p>\r\n\r\n<p>Using the timeline slider, navigate  to the page where your image is. Locate the image and click on it to select.  Now you should check whether it is a button layer or not. It must be a <strong>&ldquo;Button&rdquo;<\/strong>.  If it is <strong>&ldquo;Movie Clip&rdquo;<\/strong>, <strong>&ldquo;Graphics&rdquo;<\/strong> or some other that differs from <strong>&ldquo;Button&rdquo;<\/strong> you can&rsquo;t assign links to it in the right way. Don&rsquo;t change it  to the <strong>&ldquo;Button&rdquo;<\/strong> because it will damage original rollover structure.<\/p>\r\n\r\n<p align=\"center\"><a href=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/05\/assign_link_to_image-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/05\/assign_link_to_image-1-300x214.jpg\" alt=\"\" title=\"assign_link_to_image-1\" width=\"300\" height=\"214\" class=\"aligncenter size-medium wp-image-8261\" \/><\/a><\/p>\r\n\r\n<p>&nbsp;<\/p>\r\n<p>As we can see it is not a &ldquo;<strong>Button<\/strong>&rdquo;. <\/p>\r\n\r\n<p>Double click this symbol to get inside of it. Now, we can see the Button layer.  Press <strong>&ldquo;F9<\/strong><strong>\u2033<\/strong> key to  open Actions panel. If this button has rollover effect, you will see following  script code there:<\/p>\r\n\r\n  <pre class=\"brush:as3\">\r\n  on (rollOver) {<br>\r\n  gotoAndPlay(2);<br>\r\n  }<br>\r\n  on (rollOut) {<br>\r\n  gotoAndPlay(10);<br>\r\n  } <br>\r\n  <\/pre>\r\n  \r\n  <p>Add there following getURL  action script code:<\/p>\r\n  \r\n  <pre class=\"brush:as3\">\r\n  on (release) {<br>\r\n  getURL(&ldquo;your_url_here&rdquo;);<br>\r\n}<\/pre>\r\n\r\n<p>You 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:<\/p>\r\n  <pre class=\"brush:as3\">\r\n  on (release) {<br>\r\n  getURL(&ldquo;http:\/\/mywebsite.com\/contacts.html&rdquo;);<br>\r\n}<\/pre>\r\n\r\n<p>Actually, 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 <strong>&ldquo;_blank&rdquo;<\/strong> argument. Variables send method should be used  if you are parsing some variables through the URL string. The available options  are <strong>&ldquo;GET&rdquo;<\/strong> and <strong>&ldquo;POST&rdquo;<\/strong>. Next action script example calls products  page with &ldquo;item&rdquo; variable with &ldquo;9\u2033  value in the same window using a GET method.<\/p>\r\n\r\n  <pre class=\"brush:as3\">\r\n  on (release) {<br>\r\n  getURL(&ldquo;http:\/\/mywebsite.com\/products.php?item=9\u2033,  &ldquo;_self&rdquo;, &ldquo;GET&rdquo;);<br>\r\n}<\/pre>\r\n\r\n<p>There is no  other script in our example, therefore, we will just add this code:<\/p>\r\n\r\n<pre class=\"brush:as3\">\r\n  on (release) {<br>\r\n  getURL(&ldquo;http:\/\/template-help.com&rdquo;);<br>\r\n}<\/pre>\r\n\r\n<p align=\"center\"><a href=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/05\/assign_link_to_image-2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/05\/assign_link_to_image-2-300x181.jpg\" alt=\"\" title=\"assign_link_to_image-2\" width=\"300\" height=\"181\" class=\"aligncenter size-medium wp-image-8262\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/05\/assign_link_to_image-2-300x181.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/05\/assign_link_to_image-2-1024x618.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/05\/assign_link_to_image-2.jpg 1341w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n\r\n<p>Publish the .FLA file. You may use(CTRL+ENTER) short key or go to  <strong>File-&gt;Publish Preview-&gt; Flash <\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>First of all you should open source &ldquo;FLA&rdquo; file in Adobe 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. Open the library (CTRL+L) and locate pages movie clip. Usually called &ldquo;pages_all&rdquo;, &ldquo;pages&rdquo;, &ldquo;pages2&rdquo;, [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[279],"tags":[882,923,486,537,521],"class_list":["post-8260","post","type-post","status-publish","format-standard","hentry","category-work-with-flash","tag-as2","tag-assign","tag-flash-2","tag-image","tag-link"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/8260","targetHints":{"allow":["GET"]}}],"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=8260"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/8260\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=8260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=8260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=8260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}