How to embed an swf file.
-
My home page is using the front-page.php file and I am trying to put a flash banner inside of the banner div on that page. This is the first time I’ve ever embedded flash on any kind of website. WordPress or otherwize. I am taking all of the code that is generated by adobe flash which consist of javascript and a object tag which is wrapped inside a noscript tag but when I upload it and view it it’s just an empty div.
Some of the things I already tried was removing all of the javascript and just using the object which is wrapped inside of the noscript, then I tried just removing the noscript and just using the javascript and the object only but nothing works. The best I was ever able to get was a big white square.
I should also mention that the swf file which is fitness-slideshow.swf is in the root of my theme. Below is all of the code that’s being generated by Adobe flash. Someone please help a brotha out!.
<!--url's used in the movie--> <!--text used in the movie--> <!-- saved from url=(0013)about:internet --> <script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '592', 'height', '349', 'src', 'fitness slideshow', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'fitness slideshow', 'bgcolor', '#ffffff', 'name', 'fitness slideshow', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', 'fitness slideshow', 'salign', '' ); //end AC code } </script> <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="592" height="349" id="fitness slideshow" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="fitness slideshow.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="fitness slideshow.swf" quality="high" bgcolor="#ffffff" width="592" height="349" name="fitness slideshow" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </noscript>
The topic ‘How to embed an swf file.’ is closed to new replies.