{"id":205,"date":"2011-03-06T16:55:27","date_gmt":"2011-03-06T15:55:27","guid":{"rendered":"http:\/\/www.aymericlamboley.fr\/blog\/?p=205"},"modified":"2011-03-07T11:58:23","modified_gmt":"2011-03-07T10:58:23","slug":"flash-template-for-publishing-with-swf-object","status":"publish","type":"post","link":"http:\/\/www.aymericlamboley.fr\/blog\/flash-template-for-publishing-with-swf-object\/","title":{"rendered":"Flash template for publishing with SWF Object"},"content":{"rendered":"<p>Publishing for the web inside Adobe Flash IDE is a bit outdated : nowadays we use <a href=\"http:\/\/code.google.com\/p\/swfobject\/\">SWF Object<\/a> to embed our swf.<br \/>\nSo this is a template that you can add into the Flash IDE to allow SWF Object publishing, thanks to <a href=\"http:\/\/www.pierrickpluchon.fr\">Pierrick<\/a> for the discovery !<\/p>\n<pre lang=\"html4strict\" line=\"1\">$TTSWFObject\r\n$DXDefaultDetection.html\r\n$DS\r\nDisplay Adobe Flash Movies with SWFObject. NOTE: You Must add swfobject.js and expressInstall.swf in the same directory as your swf.\r\n$DF\r\n<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd\">\r\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" lang=\"en\" xml:lang=\"en\">\r\n\t<head>\r\n\t\t<title>$TI<\/title>\r\n\t\t$CS\r\n\t\t<script type=\"text\/javascript\" src=\"js\/swfobject.js\"><\/script>\r\n\t\t<script type=\"text\/javascript\">\r\n\t\t\r\n\t\t\tvar flashvars = {};\r\n \r\n\t\t\tvar params = {};\r\n\t\t\tparams.menu = \"$ME\";\r\n\t\t\tparams.quality = \"$QU\";\r\n\t\t\tparams.scale = \"$SC\";\r\n\t\t\tparams.salign = \"$SA\";\r\n\t\t\tparams.wmode = \"$WM\";\r\n\t\t\tparams.bgcolor = \"$BG\";\r\n\t\t\tparams.allowfullscreen = \"false\";\r\n\t\t\tparams.allowscriptaccess = \"sameDomain\";\r\n\t\t\t\r\n\t\t\tvar attributes = {};\r\n\t\t\tattributes.id = \"$TI\";\r\n\t\t\tattributes.name = \"$TI\";\r\n\t\t\tattributes.align = \"$HA\";\r\n\t\t\t\r\n\t\t\tswfobject.embedSWF(\"$TI.swf\", \"$TIDiv\", \"$WI\", \"$HE\", \"$FV,$JR,$NR\", \"expressInstall.swf\", flashvars, params, attributes);\r\n\t\t<\/script>\r\n\t<\/head>\r\n\t\r\n\t<body bgcolor=\"$BG\">\r\n\t\r\n\t <style type='text\/css'>\r\n\t* {height:100%; margin:0; padding:0;}\r\n\t <\/style>\r\n\t\t<center>\r\n\t\t<div id=\"$TIDiv\">\r\n\t\t\t<a href=\"http:\/\/www.adobe.com\/go\/getflashplayer\">\r\n\t\t\t\t<img decoding=\"async\" src=\"http:\/\/www.adobe.com\/images\/shared\/download_buttons\/get_flash_player.gif\" alt=\"Get Adobe Flash player\" \/>\r\n\t\t\t<\/a>\r\n\t\t<\/div>\r\n\t\t<\/center>\r\n\t<\/body>\r\n<\/html>\r\n<\/pre>\n<p>Save your file as &#8220;swfobject.html&#8221; into the directory :<br \/>\nMac Users : \/Users\/YourName\/Library\/Application Support\/Adobe\/Flash CS5\/fr_FR\/Configuration\/HTML\/<br \/>\nWindows : C:\\Users\\YourName\\AppData\\Local\\Adobe\\Flash CS5\\fr_FR\\Configuration\\Commands\\HTML\\<\/p>\n<p>Open Flash, check parameters of publication for HTML and choose SWFObject for the model. Then publish, your swf should be embed with SWFObject into your html.<\/p>\n<p>P.S. Don&#8217;t forget to change your charset into UTF-8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Publishing for the web inside Adobe Flash IDE is a bit outdated : nowadays we use SWF Object to embed our swf. So this is a template that you can add into the Flash IDE to allow SWF Object publishing, thanks to Pierrick for the discovery ! $TTSWFObject $DXDefaultDetection.html $DS Display Adobe Flash Movies with &hellip; <a href=\"http:\/\/www.aymericlamboley.fr\/blog\/flash-template-for-publishing-with-swf-object\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Flash template for publishing with SWF Object<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[33],"tags":[37,34,36,35],"_links":{"self":[{"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/posts\/205"}],"collection":[{"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":6,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":211,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions\/211"}],"wp:attachment":[{"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}