{"id":9300,"date":"2011-06-27T05:04:27","date_gmt":"2011-06-27T09:04:27","guid":{"rendered":"http:\/\/info.template-help.com\/?p=9300"},"modified":"2013-04-22T10:14:22","modified_gmt":"2013-04-22T14:14:22","slug":"how-to-embed-flash-movie-into-html-page-flashobject","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-embed-flash-movie-into-html-page-flashobject.html","title":{"rendered":"How to embed flash movie into HTML page (flashObject)"},"content":{"rendered":"<p>This  tutorial will show you how to embed the flash (SWF) movie into your html page. <\/p>\r\n<ul>\r\n  <li>Download  the <strong>FlashObject<\/strong> script package here:  \u00a0<a href=\"http:\/\/blog.deconcept.com\/flashobject\/\">http:\/\/blog.deconcept.com\/flashobject\/<\/a><\/li>\r\n  <li>Extract  the files from the downloaded zip archive<\/li>\r\n  <li>Upload  the <strong>flashobject.js<\/strong> file to your  website scripts directory <\/li>\r\n  <li>Into  your html page add the following code:<\/li>\r\n<\/ul>\r\n\r\n<pre class=\"brush:html\">&lt;div  id=&quot;head&quot;&gt;<br>\r\n  &lt;a  href=&quot;http:\/\/www.adobe.com\/go\/EN_US-H-GET-FLASH&quot;&gt;&lt;img  src=&quot;http:\/\/www.adobe.com\/images\/shared\/download_buttons\/get_adobe_flash_player.png&quot;  alt=&quot;&quot; \/&gt;&lt;\/a&gt;<br>\r\n  &lt;\/div&gt;<\/pre>\r\n\r\n<p>This is an  alternative text that would be visible for the visitors who don\u2019t have flash  player installed. <\/p>\r\n\r\n<p>Then embed  your SWF movie:<\/p>\r\n\r\n  <pre class=\"brush:html\">&lt;script  type=&quot;text\/javascript&quot;&gt;<br>\r\n  var fo = new  FlashObject(&quot;flash\/menu_v8.swf?button=1&quot;, &quot;head&quot;,  &quot;100%&quot;, &quot;135&quot;, &quot;7&quot;, &quot;&quot;);<br>\r\n  fo.addParam(&quot;quality&quot;,  &quot;high&quot;);<br>\r\n  fo.write(&quot;head&quot;);<br>\r\n&lt;\/script&gt;<\/pre>\r\n\r\n<p>You may  need to modify the second line: \u00a0<\/p>\r\n\r\n<pre class=\"brush:html\">  var fo =  new FlashObject(&quot;flash\/menu_v8.swf?button=1&quot;, &quot;head&quot;,  &quot;100%&quot;, &quot;135&quot;, &quot;7&quot;, &quot;&quot;);<br>\r\n  where:<\/pre>\r\n  \r\n<ul type=\"disc\">\r\n  <li>swf &#8211; The file path and name to your swf file.<\/li>\r\n  <li>id &#8211; The ID of your object or embed tag. The embed tag will also have this value set as it&#8217;s name attribute for files that take advantage of swliveconnect.<\/li>\r\n  <li>width &#8211; The width of your Flash movie.<\/li>\r\n  <li>height &#8211; The height of your Flash movie.<\/li>\r\n  <li>version &#8211; The required player version for your Flash content. This can be a string in the format of &#8216;majorVersion.minorVersion.revision&#8217;. An example would be: &quot;6.0.65&quot;. Or you can just require the major version, such as &quot;6&quot;.<\/li>\r\n  <li>background color &#8211; This is the hex value of the background color of your Flash movie.<\/li>\r\n<\/ul>\r\n\r\n<p>You may  check more detailed documentation here: \u00a0<a href=\"http:\/\/blog.deconcept.com\/flashobject\/\">http:\/\/blog.deconcept.com\/flashobject\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to embed the flash (SWF) movie into your html page. Download the FlashObject script package here: \u00a0http:\/\/blog.deconcept.com\/flashobject\/ Extract the files from the downloaded zip archive Upload the flashobject.js file to your website scripts directory Into your html page add the following code: &lt;div id=&quot;head&quot;&gt; &lt;a href=&quot;http:\/\/www.adobe.com\/go\/EN_US-H-GET-FLASH&quot;&gt;&lt;img src=&quot;http:\/\/www.adobe.com\/images\/shared\/download_buttons\/get_adobe_flash_player.png&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[253],"tags":[513,979,2411,978],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/9300"}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=9300"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/9300\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=9300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=9300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=9300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}