{"id":151,"date":"2008-05-01T20:47:18","date_gmt":"2008-05-01T20:47:18","guid":{"rendered":"http:\/\/beta.robertprice.co.uk\/robblog\/2008\/05\/geturl_and_flash_9-shtml\/"},"modified":"2008-05-01T20:47:18","modified_gmt":"2008-05-01T20:47:18","slug":"geturl_and_flash_9-shtml","status":"publish","type":"post","link":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/","title":{"rendered":"getURL and Flash 9"},"content":{"rendered":"<p>\nWe upgraded our Flash players to the current version today and found a few slides on our sites didn&#8217;t work as expected.\n<\/p>\n<p>\nWhen clicked, they were supposed to take you to other pages, but with the upgrade, old code was found to be broken.\n<\/p>\n<p>\nLooking around, it appears the security model changed and we weren&#8217;t aware of this. I think it&#8217;s time to subscribe to the <a href=\"http:\/\/rss.adobe.com\/en\/resources_flash.rss\">Flash RSS feed<\/a> to keep on top of bug fixes and upgrades.\n<\/p>\n<p>\nAnyway, it turned out our code could be fixed by just setting <var>AllowScriptAccess<\/var> to be &#8220;always&#8221; or &#8220;sameDomain&#8221;, depending on the application. In the <code>&lt;object&gt;<\/code> tag this was achieved by adding&#8230;\n<\/p>\n<div class=\"code\"><code>&lt;param name=\"allowScriptAccess\" value=\"always\"&gt;<br \/>\n<\/code><\/div>\n<p>\n&#8230; and in the embed tag&#8230;<\/p>\n<div class=\"code\"><code>allowScriptAccess=\"always\"<br \/>\n<\/code><\/div>\n<\/p>\n<p>\nThose of you using <a href=\"http:\/\/blog.deconcept.com\/swfobject\/\">SWFObject<\/a>, the following JavaScript code does the trick&#8230;\n<\/p>\n<div class=\"code\"><code>so.addParam(\"allScriptAccess\", \"always\");<br \/>\n<\/code><\/div>\n<p>\nThis means when we call <code>getURL()<\/code> from ActionScript it is able to navigate to other pages on a foreign or the same domain.\n<\/p>\n<p>\nThere is a bit more information on this on the Adobe Flash knowledge base, <a href=\"http:\/\/kb.adobe.com\/selfservice\/viewContent.do?externalId=50c1cf38\">Links from SWF files in HTML page no longer function (Flash Player 9)<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We upgraded our Flash players to the current version today and found a few slides on our sites didn&#8217;t work as expected. When clicked, they were supposed to take you to other pages, but with the upgrade, old code was found to be broken. Looking around, it appears the security model changed and we weren&#8217;t &hellip; <a href=\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;getURL and Flash 9&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[2],"tags":[31,75],"class_list":["post-151","post","type-post","status-publish","format-standard","hentry","category-dev","tag-javascript","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>getURL and Flash 9 - Robert Price<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"getURL and Flash 9 - Robert Price\" \/>\n<meta property=\"og:description\" content=\"We upgraded our Flash players to the current version today and found a few slides on our sites didn&#8217;t work as expected. When clicked, they were supposed to take you to other pages, but with the upgrade, old code was found to be broken. Looking around, it appears the security model changed and we weren&#8217;t &hellip; Continue reading &quot;getURL and Flash 9&quot;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/\" \/>\n<meta property=\"og:site_name\" content=\"Robert Price\" \/>\n<meta property=\"article:published_time\" content=\"2008-05-01T20:47:18+00:00\" \/>\n<meta name=\"author\" content=\"rob\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rob\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/\"},\"author\":{\"name\":\"rob\",\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"headline\":\"getURL and Flash 9\",\"datePublished\":\"2008-05-01T20:47:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/\"},\"wordCount\":179,\"keywords\":[\"JavaScript\",\"Web Development\"],\"articleSection\":[\"Dev\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/\",\"url\":\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/\",\"name\":\"getURL and Flash 9 - Robert Price\",\"isPartOf\":{\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/#website\"},\"datePublished\":\"2008-05-01T20:47:18+00:00\",\"author\":{\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.robertprice.co.uk\/robblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"getURL and Flash 9\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/#website\",\"url\":\"http:\/\/www.robertprice.co.uk\/robblog\/\",\"name\":\"Robert Price\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.robertprice.co.uk\/robblog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5\",\"name\":\"rob\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"http:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"caption\":\"rob\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"getURL and Flash 9 - Robert Price","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/","og_locale":"en_GB","og_type":"article","og_title":"getURL and Flash 9 - Robert Price","og_description":"We upgraded our Flash players to the current version today and found a few slides on our sites didn&#8217;t work as expected. When clicked, they were supposed to take you to other pages, but with the upgrade, old code was found to be broken. Looking around, it appears the security model changed and we weren&#8217;t &hellip; Continue reading \"getURL and Flash 9\"","og_url":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/","og_site_name":"Robert Price","article_published_time":"2008-05-01T20:47:18+00:00","author":"rob","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rob","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/#article","isPartOf":{"@id":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/"},"author":{"name":"rob","@id":"http:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"headline":"getURL and Flash 9","datePublished":"2008-05-01T20:47:18+00:00","mainEntityOfPage":{"@id":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/"},"wordCount":179,"keywords":["JavaScript","Web Development"],"articleSection":["Dev"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/","url":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/","name":"getURL and Flash 9 - Robert Price","isPartOf":{"@id":"http:\/\/www.robertprice.co.uk\/robblog\/#website"},"datePublished":"2008-05-01T20:47:18+00:00","author":{"@id":"http:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"breadcrumb":{"@id":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.robertprice.co.uk\/robblog\/geturl_and_flash_9-shtml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.robertprice.co.uk\/robblog\/"},{"@type":"ListItem","position":2,"name":"getURL and Flash 9"}]},{"@type":"WebSite","@id":"http:\/\/www.robertprice.co.uk\/robblog\/#website","url":"http:\/\/www.robertprice.co.uk\/robblog\/","name":"Robert Price","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.robertprice.co.uk\/robblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"http:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5","name":"rob","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"http:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","caption":"rob"}}]}},"_links":{"self":[{"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/comments?post=151"}],"version-history":[{"count":0,"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/151\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/media?parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/categories?post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/tags?post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}