{"id":731,"date":"2010-06-18T14:56:32","date_gmt":"2010-06-18T18:56:32","guid":{"rendered":"http:\/\/www.blizzarddigital.com\/blog\/?p=731"},"modified":"2010-06-18T15:31:09","modified_gmt":"2010-06-18T19:31:09","slug":"valid-flash-embed-and-preloaders","status":"publish","type":"post","link":"https:\/\/www.blizzarddigital.com\/blog\/valid-flash-embed-and-preloaders\/","title":{"rendered":"Valid Flash Embed and Preloaders in Internet Explorer"},"content":{"rendered":"<p>Hello once again, web friends. Today I bring tidings of Flash preloaders and validity.<\/p>\n<p>You may have noticed that with the embed code from my <a href=\"\/valid-flash-embed\/\">YouTube article<\/a> that Flash movie preloaders don&#8217;t work in Internet Explorer, and the movie has to load entirely before it even displays at all. This is because Internet Explorer requires a different attribute and the removal of another in the <code>object<\/code> tag to let preloaders work properly. However, with different attributes, the Flash movie will not display at all in Firefox, so we must use Internet Explorer&#8217;s <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms537512(VS.85).aspx\">conditional comments<\/a> to utilize two different opening <code>object<\/code> tags. Behold:<\/p>\n<pre><code>&lt;!--[if !IE]&gt;--&gt;&lt;object data=\"yourmovie.swf\" type=\"application\/x-shockwave-flash\"\r\n\twidth=\"320\" height=\"240\"&gt;&lt;!--&lt;![endif]--&gt;\r\n&lt;!--[if IE]&gt;&lt;object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\r\n\twidth=\"320\" height=\"240\"&gt;&lt;![endif]--&gt;\r\n\t&lt;param name=\"movie\" value=\"yourmovie.swf\" \/&gt;\r\n\t&lt;param name=\"quality\" value=\"high\" \/&gt;\r\n&lt;\/object&gt;<\/code><\/pre>\n<p>The first line is the original that works in both IE and Firefox but doesn&#8217;t allow preloaders in IE. The second is the IE-only method that works with preloaders. Note the lack of a <code>data<\/code> attribute and the addition of a <code>classid<\/code> attribute.<\/p>\n<p>Well, there you have it. Venture forth and embed Flash validly with preload animations!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello once again, web friends. Today I bring tidings of Flash preloaders and validity. You may have noticed that with the embed code from my YouTube article that Flash movie preloaders don&#8217;t work in Internet Explorer, and the movie has to load entirely before it even displays at all. This is because Internet Explorer requires [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[173,170,168,151,167,169,25,183,19],"class_list":["post-731","post","type-post","status-publish","format-standard","hentry","category-web-standards","tag-conditional-comments","tag-embed","tag-firefox","tag-flash","tag-internet-explorer","tag-preloader","tag-web-development","tag-web-standards","tag-xhtml"],"_links":{"self":[{"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/posts\/731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/comments?post=731"}],"version-history":[{"count":5,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/posts\/731\/revisions"}],"predecessor-version":[{"id":738,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/posts\/731\/revisions\/738"}],"wp:attachment":[{"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/media?parent=731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/categories?post=731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/tags?post=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}