{"id":2718,"date":"2014-03-12T11:50:41","date_gmt":"2014-03-12T12:50:41","guid":{"rendered":"http:\/\/kiubmen.com\/?p=2718"},"modified":"2014-03-12T11:52:28","modified_gmt":"2014-03-12T12:52:28","slug":"best-way-to-embed-a-swf-file-in-a-html-page","status":"publish","type":"page","link":"http:\/\/kiubmen.com\/best-way-to-embed-a-swf-file-in-a-html-page\/","title":{"rendered":"Best way to embed a SWF file in a html page?"},"content":{"rendered":"

The best approach to embed a SWF into a HTML page is to use\u00a0SWFObject<\/a>.<\/p>\n

\r\n\r\n\r\n  \r\n    SWFObject dynamic embed - step 3<\/title>\r\n    <meta http-equiv=\"Content-Type\" content=\"text\/html; charset=iso-8859-1\" \/>\r\n    <script type=\"text\/javascript\" src=\"swfobject.js\"><\/script>\r\n\r\n    <script type=\"text\/javascript\">\r\n    swfobject.embedSWF(\"myContent.swf\", \"myContent\", \"300\", \"120\", \"9.0.0\");\r\n    <\/script>\r\n\r\n  <\/head>\r\n  <body>\r\n    <div id=\"myContent\">\r\n      <p>Alternative content<\/p>\r\n    <\/div>\r\n  <\/body>\r\n<\/html>\r\n<\/pre>\n<p>A good tool to use along with this is the SWFObject HTML and Javascript generator. It basically generates the HTML and Javascript you need to embed the Flash using SWFObject. Comes with a very simple UI for you to input your parameters.<\/p>\n<p>Or<\/p>\n<pre>\r\n<object width=\"100\" height=\"100\">\r\n    <param name=\"movie\" value=\"file.swf\">\r\n    <embed src=\"file.swf\" width=\"100\" height=\"100\">\r\n    <\/embed>\r\n<\/object>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The best approach to embed a SWF into a HTML page is to use\u00a0SWFObject. SWFObject dynamic embed – step 3 Alternative content A good tool to use along with this is the SWFObject HTML and Javascript generator. It basically generates the HTML and Javascript you need to embed the Flash using SWFObject. Comes with a […]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/kiubmen.com\/wp-json\/wp\/v2\/pages\/2718"}],"collection":[{"href":"http:\/\/kiubmen.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/kiubmen.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/kiubmen.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kiubmen.com\/wp-json\/wp\/v2\/comments?post=2718"}],"version-history":[{"href":"http:\/\/kiubmen.com\/wp-json\/wp\/v2\/pages\/2718\/revisions"}],"wp:attachment":[{"href":"http:\/\/kiubmen.com\/wp-json\/wp\/v2\/media?parent=2718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}