jp612 Posted December 26, 2010 Report Share Posted December 26, 2010 (edited) Hi, I created a flash video (.swf) and tried to embed it in html. I got my dreamweaver CS4 to create it for me but when i visit it, i get told to install the newest version of flash even though i have it. I tested it on 2 pc's and all major web browsers this is the main embed code: div id="homepage-slideshow"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="50" height="50" id="FlashID" title="slideshow"> <param name="movie" value="flash/homepage-slideshow.swf" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="6.0.65.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> <param name="expressinstall" value="../Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="flash/homepage-slideshow.swf" width="813" height="200"> <!--<![endif]--> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="6.0.65.0" /> <param name="expressinstall" value="../Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object> <script type="text/javascript"> <!-- swfobject.registerObject("FlashID"); //--> </script> this is the website: www.debesdesign.com its on the bottom of the homepage. any ideas? Thanks. Edited December 26, 2010 by jp612 Quote Link to comment Share on other sites More sharing options...
virtual Posted December 26, 2010 Report Share Posted December 26, 2010 (edited) If you created the Flash video yourself just Publish it in Flash. Go to the Publish settings first and under Formats check Flash and HTML then click Publish and Flash will create the .swf and .html page. Then just copy the embed code from the html page and put it into your page. P.S. Run a spell check through your site, you have quite a few spelling mistakes. Edited December 26, 2010 by virtual Quote Link to comment Share on other sites More sharing options...
jp612 Posted December 27, 2010 Author Report Share Posted December 27, 2010 ok ill try publish it. Also thanks , I do see alot of spelling errors Quote Link to comment Share on other sites More sharing options...
jp612 Posted December 27, 2010 Author Report Share Posted December 27, 2010 Urgh! I tried publishing it and it worked in the html file but when i put the code into my website it didnt work. However it does work when i open my include html file (homepage.html) in a browser. Its as if flash cant deal with my php in the site. or some css is annoying it. Quote Link to comment Share on other sites More sharing options...
lm Posted December 27, 2010 Report Share Posted December 27, 2010 seems like it is a path problem. If you write: param name="movie" value="homepage-slideshow.swf" /> , it means that html file and slideshow should be in a same folder. Just to test it, copy slideshow to the same folder as your home page ( or include file in which .swf file is used) and see if flash is loaded. Quote Link to comment Share on other sites More sharing options...
jp612 Posted December 28, 2010 Author Report Share Posted December 28, 2010 seems like it is a path problem. If you write: param name="movie" value="homepage-slideshow.swf" /> , it means that html file and slideshow should be in a same folder. Just to test it, copy slideshow to the same folder as your home page ( or include file in which .swf file is used) and see if flash is loaded. Yeah thats what i thought it was. And i fiddled around with the path and location of the flash file to the point where i copied the flash file all over the place. I now packed the html flash file and the swf file in one folder and used a php include to put the html file where i want it. But still no luck... Quote Link to comment Share on other sites More sharing options...
newseed Posted December 28, 2010 Report Share Posted December 28, 2010 Check to see if a xml file is being used. When you move files around like that sometimes the xml file needs to reside in the same folder as the flash swf file. Be sure to check the xml file to see what the default image paths are. Quote Link to comment Share on other sites More sharing options...
jp612 Posted December 29, 2010 Author Report Share Posted December 29, 2010 yeah that was the problem. I keep for getting that the paths are always relative to the website root. Thanks!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.